SQL Coding Practice 1


1.

Create a student table to store name, age and score of students.

detailsdatatype
namestring of max length 200
ageinteger
scoreinteger


2.

In a typical e-commerce application, we need to store the following customer details. Create a customer table to store the data.

detailsdatatype
customer_idinteger
first_namestring of max length 200
last_namestring of max length 200
date_of_birthdate
addresstext
phone_numberinteger

3.

We need to store the details of orders in an e-commerce application. Create an order_details table to store the following details for every order.

detailsdatatype
order_idinteger
customer_idinteger
order_datetimedatetime
shipped_datetimedatetime
total_amountfloat

4.

We're storing the details of players who are a part of a tournament. The database contains a player table that stores the name, age and score of players.

We have to add a new player to the

player
table.

detailsvalue
nameRam
age28
score30

5.

The database contains a player table that stores the name, age and score of players. Get all the players from the player table in the following format.

Expected Output Format:

nameagescore
Suresh2170
Venkat2143
---------


6. Get all the details of "Suresh" from the player   table in the following format.

Expected Output Format:

nameagescore
Suresh2170


Post a Comment

Please Select Embedded Mode To Show The Comment System.*

Previous Post Next Post

Contact Form