SQL Order By with multiple fields

If you want to use multiple fields with Order By,

Don’t do :

Order By field1 ASC and field2 DESC

do

Order By field1 ASC, field2 DESC

#SelfNote

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s