Showing posts with label Structured Query Language. Show all posts
Showing posts with label Structured Query Language. Show all posts

Which command will result in records that have a Col1 value greater than 100?

Which command will result in records that have a Col1 value greater than 100?



A) SELECT Col1 FROM Table1 IF Col1 GT 100
B) SELECT Col1 FROM Table1 WHERE Col1 > 100
C) SELECT Col1 > 100 FROM Table1
D) IF Col1 > 100 SELECT * FROM Table1

Answer: B) SELECT Col1 FROM Table1 WHERE Col1 > 100

Which command changes the database context?

Which command changes the database context?


A) OPEN [Database Name]
B) USE [Database Name];
C) SELECT [Database Name];
D) SWITCH [Database Name]

Answer: B) USE [Database Name];

Which of the following represents correct syntax for a SELECT statement?

Which of the following represents correct syntax for a SELECT statement?



A) SELECT [Column Name] FROM [Table Name]
B) SELECT [Object Name] FOR [Column Name];
C) SELECT [Database Name] From [Column Name];
D) SELECT [Table Name] FROM [Row Name]


Answer: A) SELECT [Column Name] FROM [Table Name]