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

    Unit 18 - Database P1, M1

    • 995 Words
    • 4 Pages

    A Table is where you are organised and store data so you have to create the table before store any data. By creating table, you need to define few things, Fields name, Data type, and the Description.…

    • 995 Words
    • 4 Pages
    Powerful 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

    A database is a digital storage area that helps people keep track of things. A database can also be considered a digital list because in the real world work environment keeping track of lists is very valuable to an organization but in other cases a simple list is not agile and versatile enough to avoid data inconsistencies and other problems that may arise. Databases are valuable because they are not only objects that remain in list form; but also a tool that can be split into table data that may then help to solve organizational problems that lead to more efficient business operation. The best way to organize valuable information within an organization is rational database tables because they are designed to solve all of the problems and limitations that comes with simple lists.…

    • 414 Words
    • 2 Pages
    Satisfactory 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
  • Good Essays

    2.5 Database Analysis

    • 823 Words
    • 4 Pages

    A database is a collection of information that is organized so that it can easily be accessed, managed, and updated. Databases in particular can form a key part of an information management plan which can support researchers and facilitate data management throughout the research lifecycle. Database technology can assist data at the collection stage by providing customized ways to input data, and the ability to do so from different locations such as five different accommodations in the research. Also the database design would need separate database tables to cater for five accommodation. The access to the data can be developed by better and more flexible ways of searching. The Database will create and show the relationship between the different tables.…

    • 823 Words
    • 4 Pages
    Good 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
  • 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