Preview

My Sql

Satisfactory Essays
Open Document
Open Document
1999 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
My Sql
This query will create a table

create table furniture
(
no int(6) NOT NULL PRIMARY KEY, itemname varchar(20) default NULL, type varchar(10) default NULL, dateofstock date default NULL, price decimal(6,0), discount int(2)
);
Query OK, 0 rows affected (0.22 sec)

This query will create a table

create table arrival
(
no int(6) NOT NULL PRIMARY KEY, itemname varchar(20) default NULL, type varchar(20) default NULL, dateofstock date default NULL, price int(6) default NULL, discount int(2)
);
Query OK, 0 rows affected (0.22 sec)

mysql> desc furniture;
+-------------+--------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-------------+--------------+------+-----+---------+-------+
| no | int(6) | NO | PRI | NULL | |
| itemname | varchar(20) | YES | | NULL | |
| type | varchar(10) | YES | | NULL | |
| dateofstock | date | YES | | NULL | |
| price | decimal(6,0) | YES | | NULL | |
| discount | int(2) | YES | | NULL | |
+-------------+--------------+------+-----+---------+-------+
6 rows in set (0.00 sec)

inserting values into the table furniture and arrival

insert into furniture values(1,"white lotus","double Bed","2002/02/23",30000,25);

insert into furniture values(2,"Pink Feather","Baby cot","2002/01/20",7000,20);

insert into furniture values(3,"Dolphine","Baby cot","2002/02/19",9500,20);

insert into furniture values(4,"Decent","Office Table","2002/01/01",25000,30);

insert into furniture values(5,"Comfort Zone","Double Bed","2002/01/12",25000,25);

insert into furniture values(6,"Donald","Baby cot","2002/01/12",6500,15);

insert into furniture values(7,"Royal Finish","office Table","2002/10/20",18000,25);

insert into furniture values(8,"Royal Tiger","Sofa","2002/03/22",31000,25);

insert into furniture

You May Also Find These Documents Helpful

  • Satisfactory Essays

    Hiredate DATE No No Job VARCHAR2(15) No No Mgrno number(4) no no yes ( to emp.empno) Salary number(8,2) no no Comm number(8,2) no no Deptno number(2) no no yes ( to…

    • 1169 Words
    • 5 Pages
    Satisfactory Essays
  • Good Essays

    Kudler Fine Food Week 4

    • 284 Words
    • 2 Pages

    Note: Select all of the data from both of your tables before you perform the following.…

    • 284 Words
    • 2 Pages
    Good Essays
  • Good Essays

    CAUA 8

    • 1452 Words
    • 5 Pages

    Q 1: Perform Verify and Count Commands for all three tables and identify any exceptions.…

    • 1452 Words
    • 5 Pages
    Good Essays
  • Satisfactory Essays

    C_Name, C_Phone  CUSTOMER 9. RENTAL (Confirm_No, Vehicle_ID, Pickupmile, Returnmile, Ren_Pickupdate, Ren_Returndate) FK Confirm_No  RESERVATION FK Vehicle_ID  CAR 10. INVOICE (Inv_No, Confirm_No, Vehicle_ID, Inv_Date, Inv_Amount) FK Confirm_No, Vehicle_ID …

    • 182 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    SQL Queries

    • 423 Words
    • 2 Pages

    Given the table information above, if you were asked to create an Access query that showed the Student Name and Grade for all students taking a class in Room H201, what tables would you need and how would you link them together?…

    • 423 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Sql Triggers

    • 357 Words
    • 2 Pages

    | What will the properties you have just configured do when you include them in an answer file that you use to install Windows 7? With the properties that I just configured when included in the answer file , it will set a partition named Windows to be active with NTFS file system, the partition is the C drive with a partition. The selected partition will be set to those settings…

    • 357 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Database

    • 504 Words
    • 4 Pages

    Copy and paste the specified ipconfig /all command output from the Windows CLI into the Task 1 box provided below.…

    • 504 Words
    • 4 Pages
    Satisfactory Essays
  • Good Essays

    Khaled Hosseini is the most famous Afghan in the world according to Time Magazine. He was born in Kabul, Afghanistan where his mother taught history and Farsi at a local high school, and his father worked as a diplomat. His family moved to The U.S. seeking better living conditions in 1980. After deciding he wanted to write in addition to medicine, he wrote The Kite Runner, A Thousand Splendid Suns, and And The Mountains Echoed. All of these works reflect his experiences and express his admiration for Afghanistan. In A Thousand Splendid Suns, Hosseini develops the themes of suffering and perseverance, female friendship, and love.…

    • 656 Words
    • 3 Pages
    Good Essays
  • Good Essays

    The Anasazi civilization fell because of a variety of geographical reasons. The most prominent are drought, famine, and climate change. During periods of time where it would fluctuate between normal rainfall and drought, the Anasazi farmers would move up into the mountains where the soil had retained more water. However, during their decline, the earth was cooling slightly, so the mountains were too cold to farm. Thus, famine occurred.…

    • 585 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    database mgnt

    • 730 Words
    • 3 Pages

    5. Identify and discuss the serious data redundancy problems exhibited by the file structure shown in Figure P1.5.…

    • 730 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Database Sql Server

    • 328 Words
    • 2 Pages

    Data mining uses business intelligence tools and techniques on a variety of data sources brought together in a data warehouses. true…

    • 328 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Sql Database Language

    • 1101 Words
    • 5 Pages

    Get the offering, the course number, and the course description of SUMMER 2010 offerings without an assigned instructor.…

    • 1101 Words
    • 5 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Mysql

    • 840 Words
    • 4 Pages

    Query OK, 1 row affected (0.06 sec) mysql> insert into salesman1 values("sB","Rohan","Delhi",25000,"Notebook",150); Query OK, 1 row affected (0.28 sec) mysql> insert into salesman1 values("sC","Jitu","Mumbai",21200,"Paper",250); Query OK, 1 row affected (0.31 sec) mysql> insert into salesman1 values("sD","Atul","Ghaziabad",10200,"Register",300 ); Query OK, 1 row affected (0.30 sec)…

    • 840 Words
    • 4 Pages
    Satisfactory Essays
  • Powerful Essays

    Database

    • 2550 Words
    • 11 Pages

    Designing Databases: Building a Conceptual Data Model [1] Fundamentals of Databases Alvaro A A Fernandes School of Computer Science University of Manchester Acknowledgements 2…

    • 2550 Words
    • 11 Pages
    Powerful Essays
  • Powerful Essays

    database

    • 1930 Words
    • 21 Pages

    1 Chapter 1 Database Systems Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel 1 1 In this chapter, you will learn: • The difference between data and information • What a database is, what the different types of databases are, and why they are valuable assets for decision making • The importance of database design • How modern databases evolved from file systems Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 2 1 In this chapter, you will learn (continued): • About flaws in file system data management • What the database system’s main components are and how a database system differs from a file system • The main functions of a database management system (DBMS) Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 3 1 Data vs. Information • Data: – Raw facts; building blocks of information – Unprocessed information • Information: – Data processed to reveal meaning • Accurate, relevant, and timely information is key to good decision making • Good decision making is the key to survival in a global environment Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 4 1…

    • 1930 Words
    • 21 Pages
    Powerful Essays