Preview

Hospital Management System

Good Essays
Open Document
Open Document
772 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Hospital Management System
Hospital Management System DATABASE DESIGN

1. Description A database is a collection of information and is systematically stored in tables in the form of rows and columns. The table in the database has unique name that identifies its contents. The database in turn is further described in detail giving all the fields used with the data types, constraints available, primary key and foreign key. Database design is used to manage large bodies of information. In this database we describe all the 4 tables available in the software, which are used to store all the records.

2. Data types and its description: Fields in database table have a data type. Some of the data types used in database table are explained below. a) Integer:- One optional sign character (+ or -) followed by atleast one digit (0-9). Leading and trailing blanks are ignored. No other character is allowed. b) Varchar:- It is used to store alpha numeric characters. In this data type we can set the maximum number of characters upto 8000 ranges by default SQL server will set the size to 50 characters large. 19
Hospital Management System c) Date/Time:- Date/Time data type is used for representing data or time.

Patient Table: Fields | Data Type | Relationships | Pid | Varchar(5) | Primary Key | name | Varchar(20) | Not Null | age | int | Not Null | weight | int | Not Null | gender | Varchar(10) | Not null | address | Varchar(50) | Not Null | phoneno | int | Not Null | disease | Varchar(20) | Not Null | doctorid | Varchar(5) | Not Null |

Doctor Table: Fields | Data Type | Relationships | doctorid | Varchar(5) | Primary Key | doctorname | Varchar(15) | Not Null | dept | Varchar(15) | Not Null |

20
Hospital Management System

Lab Table: Fields | Data Type | Relationships | labno | Varchar(5) |

You May Also Find These Documents Helpful

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

    Nt1330 Unit 1 Research Paper

    • 4285 Words
    • 18 Pages

    Each character requires one byte as it is usually stored as an ASCII character. Notice that a digit such as 8 could be held as either a character, an integer or even a real. If any calculations are going to take place on the value then it should be held as either an integer or a real. If the calculation will never result in it being extremely large or gaining decimal places then an integer should be used.…

    • 4285 Words
    • 18 Pages
    Powerful Essays
  • Satisfactory Essays

    A database is essentially an electronic filing system. It allows you to quickly select desired pieces of information.…

    • 492 Words
    • 3 Pages
    Satisfactory Essays
  • Powerful Essays

    Bis221 Mel Johnson

    • 765 Words
    • 3 Pages

    A database stores information for any given reason and can be tracked back for any needed purpose.…

    • 765 Words
    • 3 Pages
    Powerful Essays
  • Satisfactory Essays

    canadian born

    • 350 Words
    • 2 Pages

    Create table TOWNS from table LOCATIONS, but only for location numbers less than 1500 (do NOT create this table from scratch). This table will have same structure as table CITIES.…

    • 350 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Modifiers can be a two digit number, two character modifier, or alpha numeric indicators. CPT modifiers…

    • 240 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    A database is a computer mechanism for storing and retrieving data. It gives one true command of their data, enabling one to retrieve it, sort it, analyze it, summarize it, and report results in changes.…

    • 598 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Dbm 381 Week 1paper

    • 885 Words
    • 4 Pages

    A database consists of one or more tables; each containing data stored as individual records. Different database architectures determine how the tables and records are organized or related…

    • 885 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Data Base

    • 2312 Words
    • 10 Pages

    * SQL Server offers a list of system data types which can be utilized to define various types of data within SQL Server. SQL Server data types are composed of string, binary, number, date and other types, such as sql_variant, xml and cursor. A user is also able to define his own data types in Transact-SQL or the Microsoft .NET framework. However, these user-defined data types are based on the existing system data types. User-defined types gain their characteristics from the methods of a class, which the user builds within the programming languages supported by the .NET framework.…

    • 2312 Words
    • 10 Pages
    Good Essays
  • Satisfactory Essays

    Sql Cheat Sheet

    • 594 Words
    • 3 Pages

    * For example, the following SQL creates a new table called CUSTOMERS and adds five columns, three of which, ID and NAME and AGE, specify not to accept NULLs:…

    • 594 Words
    • 3 Pages
    Satisfactory Essays
  • Better Essays

    The data dictionary can also be used to define aliases for the column names since column names can become a bit cryptic. It can also provide information regarding different type of database objects such as tables, views, stored procedure, user groups, functions, triggers, etc. Furthermore, it can also provide information on how database objects are related to one another.…

    • 1002 Words
    • 5 Pages
    Better Essays
  • Satisfactory Essays

    DECLARE v_hiredate v_deptno v_location c_comm DATE; NUMBER(2) NOT NULL := 10; VARCHAR2(13) := 'Atlanta'; CONSTANT NUMBER := 1400;…

    • 1141 Words
    • 5 Pages
    Satisfactory Essays
  • Powerful Essays

    Concurrency control

    • 1856 Words
    • 8 Pages

    1. In this exercise, you will see how to rollback or commit transactions. By default PostgreSQL commits each SQL statement as soon as it is submitted. To prevent the transaction from committing immediately, you have to issue a command begin; to tell PostgreSQL to not commit immediately. You can issue any number of SQL statements after this, and then either commit; to commit the transaction, or rollback; to rollback the transaction. To see the effect, execute the following commands one at a time…

    • 1856 Words
    • 8 Pages
    Powerful Essays
  • Powerful Essays

    Dbms Lab 1

    • 1881 Words
    • 8 Pages

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

    • 1881 Words
    • 8 Pages
    Powerful Essays