create database and use command
create table book(
ID INT NOT NULL,
Title VARCHAR(100) NOT NULL,
Author VARCHAR(100) NOT NULL,
Year INT,
Price INT);
2. insert elements and showing the table
INSERT INTO book(ID,Title,Author,Year,Price)VALUES(1,'C','Richie',1955,10),
(2,'JAVA Script','Karen',1958,10),
(4,'Java','Schwartz',1959,10),
(5,'C++','Ross',1959,20),
(6,'prolog','Maria',1972,10),
(7,'Perl','Wall',1987,20);
To show the table command:
3. list book titles and years only
4) how many books are in the table
5) list the book with distinct year .
let the distinct year be 1987 ,(you can provide any year in the table)
command:select *from book where Year=1987;
6) order the book information by year in a descending order
7) list all the books published after year 1970
Database Management ID Title 1 Author Richie Karen с JAVA Script Java Year 1955 1958 1959...
Database Management ID Price 1 Author Richie Karen 10 2 4 Year 1955 1958 1959 Title с JAVA Script Java C++ prolog Perl 20 10 5 6 Schwartz Ross Maria 1959 1972 20 10 7 Wall 1987 20 The above relation has information about different books. The table information is already saved as txt format in Moodle under the name Quiz2Data.txt. Using MySql on your computer do: Create a database Create a table with name book, then load Quiz2Data.txt (check...
help create a table data.txt 1,C,Richie,1955 2,JAVA Script,Karen,1958 4,Java,Schwartz,1959 5,C++,Ross,1959 6,prolog,Maria,1972 7,Perl,Wall,1987 ID Title Year Price 1 Author Richie Karen 1955 1958 10 20 2 4 C JAVA Script Java C++ prolog 1959 10 5 Schwartz Ross Maria 1959 1972 20 10 6 7 Perl Wall 1987 20 The above relation has information about different books. The table information is already saved as txt format in Moodle under the name Quiz2Data.txt. Using MySql on your computer do: Create a database...
create table please for my SQL data.txt 1,C,Richie,1955 2,JAVA Script,Karen,1958 4,Java,Schwartz,1959 5,C++,Ross,1959 6,prolog,Maria,1972 7,Perl,Wall,1987 ID Title Author Price 1 Richie Karen Year 1955 1958 1959 C JAVA Script Java C++ prolog 2 4 10 20 10 5 Schwartz Ross Maria 1959 1972 20 10 6 7 Perl Wall 1987 20 The above relation has information about different books. The table information is already saved as txt format in Moodle under the name Quiz2Data.txt. Using MySql on your computer do: Create...
Database Management Gmail Maps © Hanson College BC... Dashboard Go to Help Search ID Year Price 1 Author Richie Karen 2 4 Title C JAVA Script Java C++ prolog 1955 1958 1959 1959 1972 10 20 10 Schwartz Ross Maria 5 6 20 10 7 Per Wall 1987 20 The above relation has information about different books. The table information is already saved as txt format in Moodle under the name Quiz2Data.txt. Using MySql on your computer do: Create a...