Preview

Dbms Lab 1

Powerful Essays
Open Document
Open Document
1881 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Dbms Lab 1
Ex. No.1
AIM: Study data types in SQL and usage of various Data Definition Language commands. PROCEDURE: What is SQL? SQL is structured Query Language which is a computer language for storing, manipulating and retrieving data stored in relational database. SQL is the standard language for Relation Database System. All relational database management systems like MySQL, MS Access, Oracle, Sybase, Informix, postgres and SQL Server uses SQL as standard database language. Also they are using different dialects, Such as: • MS SQL Server using T-SQL, • Oracle using PL/SQL, • MS Access version of SQL is called JET SQL (native format )etc Why SQL? • Allow users to access data in relational database management systems. • Allow users to describe the data. • Allow users to define the data in database and manipulate that data. • Allow to embed within other languages using SQL modules, libraries & pre-compilers. • Allow users to create and drop databases and tables. • Allow users to create view, stored procedure, functions in a database. • Allow users to set permissions on tables, procedures, and views History: • 1970 -- Dr. E.F. "Ted" of IBM is known as the father of relational databases. He described a relational model for databases. • 1974 -- Structured Query Language appeared. • 1978 -- IBM worked to develop Codd's ideas and released a product named System/R. • 1986 -- IBM developed the first prototype of relational database and standardized by ANSI. The first relational database was released by Relational Software and its later becoming Oracle.

1

DATA TYPES: Data Type integer smallint numeric decimal Real double precision Float character character varying Bit bit varying Date Time timestamp time with time zone timestamp with time zone year-month interval day-time interval Syntax Integer Smallint numeric(p,s) decimal(p,s) Real Explanation (if applicable)

Where p is a precision value; s is a scale value. For example, numeric(6,2) is a number that has 4 digits

You May Also Find These Documents Helpful

  • Satisfactory Essays

    PT2520 Unit7Labs Tramil

    • 330 Words
    • 1 Page

    4. What is SQL language? The programming language used to manipulate data and data objects in a relational database.…

    • 330 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    Question 7: (Practice) For the following section of code, determine the data type and scope…

    • 720 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    The column specification that determines what kind of data can be stored in that column, character versus numeric or date, for example.…

    • 327 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Referential Integrity empowers you to support a predictable and accepted database. For instance, in a patient database you may need to guarantee that no patients might be entered into the framework without an extraordinary patient ID. Else, you could wind up with a failure to rapidly record, sort and discover patients who have relating scenes of forethought, arrangements, authentic cases, and so forth.…

    • 1097 Words
    • 4 Pages
    Powerful Essays
  • Good Essays

    pt2520 assignment 1

    • 466 Words
    • 2 Pages

    Let’s get the definition out the way, the standard meaning if you will SQL or “sequel” to some is a special-purpose programming language designed for managing data held in a relational database management system (RDBMS). Now that we got that out the way, let’s get to the first question.…

    • 466 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    Unit 6 True

    • 287 Words
    • 1 Page

    SQL is the programming language used to manipulate data and data objects in a relational database management system. TRUE…

    • 287 Words
    • 1 Page
    Satisfactory Essays
  • Good Essays

    One benefit of a relational database management system is that it contains a built-in query language, which lets you obtain immediate answers to the questions you ask about your data. _________________________…

    • 585 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Structured Query Language (SQL) is a standard database computer language used for querying, modifying and managing data in Relational Database Management Systems (RDBMS). SQL was developed in the 1970's by IBM to initially manipulate and retrieve data in IBM System R. The SQL language was standardized in 1986 by the American National Standards Institute (ANSI); however, later releases were released as International Organization for Standardization (ISO) standards.…

    • 612 Words
    • 3 Pages
    Satisfactory Essays
  • Powerful Essays

    A database language must enable the user to create database and table structures to perform basic data management chores.…

    • 1917 Words
    • 8 Pages
    Powerful Essays
  • Satisfactory Essays

    • Define relational database architecture. Consider Microsoft® Access*', Microsoft SQL Server®', Oracle®, IBM DB2®, and so on.…

    • 352 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    DDL stands for Data Definition Language. These statements define the database schema or the structure. DDL queries used for creating tables, relationships, and other database querying and modifying data. Common DDL Statements are CREATE, ALTER, DROP, TRUNCATE, COMMENT and RENAME.…

    • 314 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    03

    • 4187 Words
    • 33 Pages

    The precision of a NUMBER does not include the decimal point itself in the total number of digits that can be stored in a column.…

    • 4187 Words
    • 33 Pages
    Satisfactory Essays
  • Powerful Essays

    Ipt Hsc Notes

    • 11818 Words
    • 48 Pages

    Number media types is used to represent integers (whole numbers), real numbers (decimals), currency, Boolean and dates and times.…

    • 11818 Words
    • 48 Pages
    Powerful Essays
  • Satisfactory Essays

    What is a database: A database is a group of data that has been organised in a table or group. This makes it easy to find data, but also allows you to not have any duplicates in a group. A database is used in a school or college to store students date of births. This allows the school to be able to see how old the students are. The database can also be password protected to keep the data safe.…

    • 557 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Obviously, presenting data in this form would invite error. For this reason we use the hexadecimal (base 16) and, to a lesser extent, the octal (base 8) number systems.…

    • 412 Words
    • 4 Pages
    Good Essays

Related Topics