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
  • 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
  • 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

    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

    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

    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
  • 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
  • Good Essays

    Writing Sql Statement

    • 478 Words
    • 2 Pages

    1. 2. Select Start -> MySQL -> MySQL Server 5.1 -> MySQL Command Line Client. Enter password to access the MySQL server. The password is specified when MySQL is installed. 3. Type CREATE DATABASE mydatabase to create the database.…

    • 478 Words
    • 2 Pages
    Good Essays
  • Powerful Essays

    Cost Information System

    • 21101 Words
    • 85 Pages

    A Complete Physical Schema of Tables Table: Customers Properties DateCreated: 11/30/2012 2:39:00 AM DefaultView: 2 DisplayViewsOnSharePointSit 1 FilterOnLoad: False GUID: {guid {34685D08-E805-496A- HideNewField: False A5BF-A68CD3B0DADE}} LastUpdated: 11/30/2012 2:39:22 AM NameMap: Long binary data OrderByOn: False OrderByOnLoad: True Orientation: Left-to-Right RecordCount: 29 StarColumnHidden: False TotalsRow: False Updatable: True WSSTemplateID: 105 Columns Name Type Size ID Long Integer 4 AggregateType: -1 AllowValueListEdits: False AllowZeroLength: False AppendOnly: False Attributes: Variable Length, Auto-Increment BoundColumn: 1 CollatingOrder: Neutral ColumnCount: 1 ColumnHeads: False ColumnHidden: False ColumnOrder: Default ColumnWidth: 960 DataUpdatable: False GUID: {guid {C8C60EC3-4849-4B3F-967D-142281F967D6}} OrdinalPosition: 0 Required: False RowSourceType: Table/Query ShowOnlyRowSourceValues: False SourceField: ID SourceTable: Customers TextAlign: General WSSFieldID: ID Company Text 50 AggregateType: -1 AllowZeroLength: False AppendOnly: False Attributes: Variable Length CollatingOrder: General ColumnHidden: False ColumnOrder: Default ColumnWidth: Default DataUpdatable: False DisplayControl: Text Box GUID: {guid {E05DE7F7-517A-4970-9338-F90EFD2357A3}} IMEMode: 0 IMESentenceMode: 0…

    • 21101 Words
    • 85 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