Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

query and type returned

Status
Not open for further replies.

sramey00

Programmer
Joined
Jun 9, 2004
Messages
149
Location
US
what is the type that is returned when a query takes place?
ie if i query for the max of a column, what is the answer as? (int, numeric, char, vchar)??

hmmm...
 
If we are talking about the MAX Length, as in ...

SELECT MAX(LEN(MyField)) FROM MyTable ...

An Int is returned

Thanks

J. Kusch
 
what about select max(field) from mytable?
is this dependent on what the actual field is set to?

hmmm...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top