Jump to content

SQL Quiz..


dasari4kntr

Recommended Posts

1 hour ago, dasari4kntr said:

read the comments...in this tweet...

its worth reading these comments...

 

 

 

I think query 2 as the values are filtered with id=data.id  

 

but in the first query all the records are pulled from the sub query so thats my take .. explain me if im wrong.

  • Upvote 1
Link to comment
Share on other sites

9 hours ago, libraguy863 said:

I think query 2 as the values are filtered with id=data.id  

 

but in the first query all the records are pulled from the sub query so thats my take .. explain me if im wrong.

 

6 hours ago, jalsa01 said:

First query but Depends on big table size 

it depends on the nulls bro…

check the tweet comments…lot of good discussion…

Link to comment
Share on other sites

  • 3 months later...
1 hour ago, Mr Mirchi said:

when i design a table...i always try to avoid nulls with default values...if possible..

 

null ...c0rrest dasari

agree nulls should not be the default value 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...