SQL, HTML, CSS, JavaScript Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

Write an SQL command to select everything from the table called customers

A

SELECT *
FROM Customers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Write an SQL command to select everything in the column “Name” from the table Customers

A

SELECT Name
FROM Customers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Write an SQL command to select the columns “Name” and “City”
From the table Customers

A

SELECT Name, City
FROM Customers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

write an SQL command to select all info on entities in a table called Customers, where the column “Country” is “Sweden”

A

SELECT *
FROM Customers
WHERE Country = “Sweden”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

In an SQL table called Products, write a command to list the ProductName and Price of all entities with a price greater than 50

A

SELECT Productname, Price
FROM Products
WHERE Price > 50

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

From the Table Suppliers, write an SQL command to select the SupplierName and Country where the country is Not germany

A

SELECT SupplierName, Country
FROM Suppliers
WHERE Country != “Germany”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

SQL statement to show all the information for table Customers with the ContactName Thomas Hardy or LIz Nixon

A

SELECT * FROM Customers
WHERE Contactname = “Thomas Hardy” OR Contactname = “Liz Nixon”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

In the table Customers

Show the name and country of all customers in paris or london

A

SELECT CustomerName, Country
FROM Customers
WHERE City = “London” OR City = “Paris”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

list everything in the Table Products with CategoryID 1 and a price less than 10

A

SELECT * FROM Products
WHERE CategoryID = 1 and Price < 10

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly