Modifications like adding, deleting in a existing table can be done using ALTER TABLE statement. Various constraints can be added...
Continue reading...Learn2Done
DROP TABLE
To delete a table from database, we use DROP TABLE statement Syntax: DROP TABLE table_name; Example: To delete ‘students’ table. DROP TABLE...
Continue reading...CREATE TABLE
To create a table in a database, we specify a table name, column name and there datatypes. Syntax: CREATE TABLE...
Continue reading...BACKUP DATABASE
To create a full backup of the database, we use following syntax: Syntax: BACKUP DATABASE database_name TO DISK = ‘filepath’;...
Continue reading...DROP DATABASE
To delete existing database, we use following syntax: Syntax: DROP DATABASE database_name; Example: To delete learn2done database. DROP DATABASE learn2done;
Continue reading...USE DATABASE
You may have multiple database but we need to select a specific database to operate on. To use specific database...
Continue reading...SEE DATABASES
To check or see the databases, we use following syntax: Syntax: SHOW DATABASES; This ‘SHOW DATABASES’ statement will show all the...
Continue reading...CREATE DATABASE
To create a new database, we use following syntax: Syntax: CREATE DATABASE databasename; Example: The following statement create database named ‘learn2done’...
Continue reading...Write a query to find the number of gold medals per summer who wins only gold medals
Data YEAR GOLD SILVER BRONZE 2000 Alex Dhruv Shyam 2001 Dev Duggu Chandan 2002 Saksham Arora Dev Lovekush 2003 Ayush...
Continue reading...C MATHS
C Programming allows us to perform mathematical operations through the functions defined in <math.h> header file. The <math.h> header file...
Continue reading...