Quantcast
Channel: ฟอรัม Getting started with SQL Server
Viewing all articles
Browse latest Browse all 8428

MIN MAX Question

$
0
0

I need to find the MIN/MAX or values of type "REAL" in a database with lots of tables.

I was able to find the names of all the columns(fields) that were of type "REAL" using a stored procedure.

1. How to store that query result into a temp table within the same stored procedure?

2. How do I then iterate thru that temp table (of column names) to find the MIN/MAX values of each column?

I ultimately need the MIN/MAX values that are of type "REAL" from each column in all  the tables in the database.


Viewing all articles
Browse latest Browse all 8428

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>