SlideShare a Scribd company logo
1 of 33
Database Systems 
TERM PROJECT
Group Members 
 1. Mohammad Rahmat 
 2. Furkan Zumrut 
 3. Emin Avukat 
 4. Metin Tekin 
 5. Muhammet Samil Altin
Project Details 
 Car dealer company database: 
 Require  information about car stock 
 Require  information about details 
 Require  information about visual looks
Data Required 
 Name 
 name as TEXT data given to each car for ease of data view and to avoid 
confusion 
 Model 
 model of car as DATE data, given in terms of Gregorian calendar 
 Condition 
 condition as TEXT data, showing if car is new or used 
 0-100 KM Fuel Expense 
 fuel expense per 100 KM recorded as a DOUBLE data
Data Required 
 Color 
 color of the car in the form of TEXT data 
 Horsepower 
 the amount of horsepower produced by the engine of the car stored as 
INTEGER data 
 Mileage 
 the distance travelled by car if it is used, zero in case its new – stored as INTEGER 
value 
 Price 
 price of car given in USD ($) stored as DOUBLE data
Data Required 
 Registered Date 
 the date that the car was entered to database as DATE value 
 Type 
 the type of car stored as TEXT data 
 Category 
 the manufacturer name of the car as TEXT data 
 Sub-Category 
 the model line of the car as TEXT data
Data Required 
 Gear 
 the gear type of the car – automatic or manual – stored as TEXT data 
 Interior 
 the interior design of car – either default or custom – stored as TEXT data 
 Rim 
 the rims the car has also stored as a TEXT data 
 Tire 
 the tire the car currently has, recorded as a TEXT data
Data Required 
 Photograph 
 an image of the car stored by URL to hosting site, stored as TEXT data 
 User 
 credentials of store employee to manage stock and sales
Entities – their attributes & restrictions 
 auto ENTITY: 
 Attributes: 
 01. autoid – id of car 
 Constraint – primary key (auto_pkey) 
 Constraint – NOT NULL 
 02. auto100km – fuel usage by car per 100 km 
 Constraint – NOT NULL 
 03. autocolor – color of the car 
 Constraint – NOT NULL 
 04. autohand – condition of car – first hand or second hand (used or new) 
 Constraint – NOT NULL
Entities – their attributes & restrictions 
 05. autohp – horsepower of car 
 Constraint – NOT NULL 
 06. autokm – mileage of car 
 Constraint – NOT NULL 
 07. automodel – model of car 
 Constraint – NOT NULL 
 08. autoname – name for car 
 Constraint – NOT NULL 
 09. autoprice – price of car 
 Constraint – NOT NULL 
 10. autoregisterdate – date car was added to stock 
 Constraint – NOT NULL
Entities – their attributes & restrictions 
 13. autotype – type of car 
 Constraint – NOT NULL 
 14. categoryid – manufacturer of car 
 Constraint – foreign key (fk2dddafaaaeeab) 
 REFERENCES autocategory (categoryid) 
 Constraint – NOT NULL 
 15. autofuelid – fuel type of car 
 Constraint – foreign key (fk2dddafa270b28a) 
 REFERENCES autofuel (autofuelid) 
 Constraint – NOT NULL
Entities – their attributes & restrictions 
 16. autogearid – gear type of car 
 Constraint – foreign key (fk2dddafa3428ffc) 
 REFERENCES autogear (autogearid) 
 Constraint – NOT NULL 
 17. autointerriorid – interior design of car 
 Constraint – foreign key (fk2dddafead5dc64) 
 REFERENCES autointerrior (autointerriorid) 
 Constraint – NOT NULL 
 18. autorimid – rim type of car 
 Constraint – NOT NULL 
 Constraint – foreign key (fk2dddafe4d91de4) 
 REFERENCES autorim (autorimid)
Entities – their attributes & restrictions 
 19. subcategoryid – sucategory of car, model line of car 
 Constraint – NOT NULL 
 Constraint – foreign key (fk2dddaf407318a3) 
 REFERENCES autosubcategory (subcategoryid) 
 20. autotireid – tires of the car 
 Constraint – foreign key (fk2dddafb9b7716e) 
 REFERENCES autotire (autotireid) 
 Constraint – NOT NULL
Entities – their attributes & restrictions 
 autocategory ENTITY: 
 Attributes: 
 01. categoryid – id of category 
 Constraint – primary key (autocategory_pkey) 
 Constraint – NOT NULL 
 02. categoryname – name of category 
 Constraint – NOT NULL
Entities – their attributes & restrictions 
 autofuel ENTITY: 
 Attributes: 
 01. autofuelid – id of fuel 
 Constraint – primary key (autofuel_pkey) 
 Constraint – NOT NULL 
 02. autofuelname – fuel type nam 
 Constraint – NOT NULL
Entities – their attributes & restrictions 
 autogear ENTITY: 
 Attributes: 
 01. autogearid – id of gear 
 Constraint – primary key (autogear_pkey) 
 Constraint – NOT NULL 
 02. autogearname – gear type name 
 Constraint – NOT NULL
Entities – their attributes & restrictions 
 autoimage ENTITY: 
 Attributes: 
 01. autoimageid – id of image 
 Constraint – primary key (autoimage_pkey) 
 Constraint – NOT NULL 
 02. autoid – car id from auto table 
 Constraint – foreign key (fk638f010cacd7b9fe) 
 REFERENCES auto (autoid) 
 Constraint – NOT NULL 
 03. autoimageurl – url of image 
 Constraint – NOT NULL
Entities – their attributes & restrictions 
 autointerrior ENTITY: 
 Attributes: 
 01. autointerriorid – id of interior design 
 Constraint – primary key (autointerrior_pkey) 
 Constraint – NOT NULL 
 02. autointerriorname – name of car interior design 
 Constraint – NOT NULL
Entities – their attributes & restrictions 
 autorim ENTITY: 
 Attributes: 
 01. autorimid – id of rim 
 Constraint – primary key (autorim_pkey) 
 Constraint – NOT NULL 
 02. autorimname – name of car rim 
 Constraint – NOT NULL
Entities – their attributes & restrictions 
 autosubcategory ENTITY: 
 Attributes: 
 01. autosubcategoryid – id of subcategory 
 Constraint – primary key (autosubcategory_pkey) 
 Constraint – NOT NULL 
 02. categoryid – id of category from category table 
 Constraint – foreign key (fkfd684a2faaaeeab) 
 REFERENCES autocategory (categoryid) 
 Constraint – NOT NULL 
 03. autosubcategoryname – name of subcategory 
 Constraint – NOT NULL
Entities – their attributes & restrictions 
 autotire ENTITY: 
 Attributes: 
 01. autotireid – id of tire 
 Constraint – primary key (autotire_pkey) 
 Constraint – NOT NULL 
 02. autotirename – name of tire 
 Constraint – NOT NULL
Entities – their attributes & restrictions 
 user ENTITY: 
 Attributes: 
 01. userid – id of user 
 Constraint – primary key (user_pkey) 
 Constraint – NOT NULL 
 02. mail – email address of user 
 Constraint – NOT NULL 
 03. namesurname – name and surname of user 
 Constraint – NOT NULL 
 04. password – password for logging in 
 Constraint – NOT NULL
Constraints
Relationships 
 auto Entity: 
 @Many-to-One 
 AutoCategory(categoryid): 
 many cars  one category 
 AutoFuel(autofuelid) 
 many cars  one fuel 
 AutoGear(autogearid) 
 many cars  one gear 
 AutoGear(autogearid) 
 many cars  one gear
Relationships 
 AutoRim(autorimid) 
 many cars  one rim 
 AutoSubCategory(subcategoryid) 
 many cars  one subcategory 
 AutoTires(autotireid) 
 many cars  one tire 
 @One-to-Many 
 AutoImages(autoid) 
 one car  many images
Relationships 
 autocategory Entity: 
 @One-to-Many 
 AutoSubCategory(categoryid): 
 one category  many subcategory 
 Auto(categoryid) 
 one category  many cars 
 user Entity: 
 User has no relationship with other tables.
Relationships 
 autofuel Entity: 
 @One-to-Many 
 Auto(autofuelid): 
 one fuel  many cars 
 autogear Entity: 
 @One-to-Many 
 Auto(autogearlid): 
 one gear  many cars
Relationships 
 autorim Entity: 
 @One-to-Many 
 Auto(autorimid): 
 one rim  many cars 
 autotire Entity: 
 @One-to-Many 
 Auto(autotireid): 
 one tire  many cars
Relationships 
 autoimage Entity: 
 @Many-to-One 
 Auto(autoid): 
 many images  one car 
 autosubcategory Entity: 
 @Many-to-One 
 AutoCategory(categoryid): 
 many subcategories  one category 
 @One-to-Many 
 Auto(subcategoryid) 
 one subcategory  many cars
Concept Of Database 
Database Entity Relationships
E-R Diagram
Web Service to Provide 24/7 Service 
 The database includes a webservice defined 
@http://54.72.196.42:8080/carsales-1.0/ws 
 The webservice is built through hibernate 
framework and includes all the necessary HQL codes
SQL Codes 
 All sql codes for INSERT, UPDATE, DELETE, ADD can are at the file given 
below: 
 METHOD'S SQL CODES.docx 
 All sql codes for creation of TABLES are at the file given below: 
 TABLE'S SQL CODES.docx

More Related Content

Similar to Car Dealer Database Term Project Group and Entity Relationship Diagram

AAIA ACES Data Standard -- Fit Happens
AAIA ACES Data Standard -- Fit HappensAAIA ACES Data Standard -- Fit Happens
AAIA ACES Data Standard -- Fit HappensGigi Ho
 
daimler presentataion
daimler presentataiondaimler presentataion
daimler presentataionAnubhav goel
 
1994 DODGE CARAVAN Service Repair Manual
1994 DODGE CARAVAN Service Repair Manual1994 DODGE CARAVAN Service Repair Manual
1994 DODGE CARAVAN Service Repair Manualuekdjkm jksemmd
 
1994 DODGE CARAVAN Service Repair Manual
1994 DODGE CARAVAN Service Repair Manual1994 DODGE CARAVAN Service Repair Manual
1994 DODGE CARAVAN Service Repair Manualjksemm etyhd
 
Semantic search in databases
Semantic search in databasesSemantic search in databases
Semantic search in databasesTomáš Drenčák
 
Gmax_Company Profile_16.06.15
Gmax_Company Profile_16.06.15Gmax_Company Profile_16.06.15
Gmax_Company Profile_16.06.15Cijin Thomas
 
1996 polaris xplorer 300 4x4 service repair manual
1996 polaris xplorer 300 4x4 service repair manual1996 polaris xplorer 300 4x4 service repair manual
1996 polaris xplorer 300 4x4 service repair manualfjskemdzaqmme
 
1996 polaris sport 400 l service repair manual
1996 polaris sport 400 l service repair manual1996 polaris sport 400 l service repair manual
1996 polaris sport 400 l service repair manualfisdkjekemms
 
1997 polaris xplorer 300 4x4 service repair manual
1997 polaris xplorer 300 4x4 service repair manual1997 polaris xplorer 300 4x4 service repair manual
1997 polaris xplorer 300 4x4 service repair manualfjskemdzaqmme
 
1997 polaris magnum 425 4x4 service repair manual
1997 polaris magnum 425 4x4 service repair manual1997 polaris magnum 425 4x4 service repair manual
1997 polaris magnum 425 4x4 service repair manualfjskekdmmse
 
1997 polaris worker 500 service repair manual
1997 polaris worker 500 service repair manual1997 polaris worker 500 service repair manual
1997 polaris worker 500 service repair manualjfjedkmsmem
 
1997 polaris sportsman 500 service repair manual
1997 polaris sportsman 500 service repair manual1997 polaris sportsman 500 service repair manual
1997 polaris sportsman 500 service repair manualeudskkejedmm
 
1998 polaris magnum 425 2x4 service repair manual
1998 polaris magnum 425 2x4 service repair manual1998 polaris magnum 425 2x4 service repair manual
1998 polaris magnum 425 2x4 service repair manualfjjfyjsekdmme
 
1998 polaris magnum 425 4x4 service repair manual
1998 polaris magnum 425 4x4 service repair manual1998 polaris magnum 425 4x4 service repair manual
1998 polaris magnum 425 4x4 service repair manualjjfksekdmejik
 
1997 polaris xpress 300 2x4 service repair manual
1997 polaris xpress 300 2x4 service repair manual1997 polaris xpress 300 2x4 service repair manual
1997 polaris xpress 300 2x4 service repair manualjjfksekdmejik
 
1996 polaris xpress 300 2x4 service repair manual
1996 polaris xpress 300 2x4 service repair manual1996 polaris xpress 300 2x4 service repair manual
1996 polaris xpress 300 2x4 service repair manualhfhjskedme
 
1996 polaris xpress 400 l service repair manual
1996 polaris xpress 400 l service repair manual1996 polaris xpress 400 l service repair manual
1996 polaris xpress 400 l service repair manualjjfksekdmejik
 
1996 polaris magnum 425 6x6 service repair manual
1996 polaris magnum 425 6x6 service repair manual1996 polaris magnum 425 6x6 service repair manual
1996 polaris magnum 425 6x6 service repair manualufsiekdolskek
 
1996 polaris trail boss 250 service repair manual
1996 polaris trail boss 250 service repair manual1996 polaris trail boss 250 service repair manual
1996 polaris trail boss 250 service repair manualjfjedkmsmem
 
1995 JEEP GRAND CHEROKEE Service Repair Manual
1995 JEEP GRAND CHEROKEE Service Repair Manual1995 JEEP GRAND CHEROKEE Service Repair Manual
1995 JEEP GRAND CHEROKEE Service Repair Manualjksemd dysjekmdm
 

Similar to Car Dealer Database Term Project Group and Entity Relationship Diagram (20)

AAIA ACES Data Standard -- Fit Happens
AAIA ACES Data Standard -- Fit HappensAAIA ACES Data Standard -- Fit Happens
AAIA ACES Data Standard -- Fit Happens
 
daimler presentataion
daimler presentataiondaimler presentataion
daimler presentataion
 
1994 DODGE CARAVAN Service Repair Manual
1994 DODGE CARAVAN Service Repair Manual1994 DODGE CARAVAN Service Repair Manual
1994 DODGE CARAVAN Service Repair Manual
 
1994 DODGE CARAVAN Service Repair Manual
1994 DODGE CARAVAN Service Repair Manual1994 DODGE CARAVAN Service Repair Manual
1994 DODGE CARAVAN Service Repair Manual
 
Semantic search in databases
Semantic search in databasesSemantic search in databases
Semantic search in databases
 
Gmax_Company Profile_16.06.15
Gmax_Company Profile_16.06.15Gmax_Company Profile_16.06.15
Gmax_Company Profile_16.06.15
 
1996 polaris xplorer 300 4x4 service repair manual
1996 polaris xplorer 300 4x4 service repair manual1996 polaris xplorer 300 4x4 service repair manual
1996 polaris xplorer 300 4x4 service repair manual
 
1996 polaris sport 400 l service repair manual
1996 polaris sport 400 l service repair manual1996 polaris sport 400 l service repair manual
1996 polaris sport 400 l service repair manual
 
1997 polaris xplorer 300 4x4 service repair manual
1997 polaris xplorer 300 4x4 service repair manual1997 polaris xplorer 300 4x4 service repair manual
1997 polaris xplorer 300 4x4 service repair manual
 
1997 polaris magnum 425 4x4 service repair manual
1997 polaris magnum 425 4x4 service repair manual1997 polaris magnum 425 4x4 service repair manual
1997 polaris magnum 425 4x4 service repair manual
 
1997 polaris worker 500 service repair manual
1997 polaris worker 500 service repair manual1997 polaris worker 500 service repair manual
1997 polaris worker 500 service repair manual
 
1997 polaris sportsman 500 service repair manual
1997 polaris sportsman 500 service repair manual1997 polaris sportsman 500 service repair manual
1997 polaris sportsman 500 service repair manual
 
1998 polaris magnum 425 2x4 service repair manual
1998 polaris magnum 425 2x4 service repair manual1998 polaris magnum 425 2x4 service repair manual
1998 polaris magnum 425 2x4 service repair manual
 
1998 polaris magnum 425 4x4 service repair manual
1998 polaris magnum 425 4x4 service repair manual1998 polaris magnum 425 4x4 service repair manual
1998 polaris magnum 425 4x4 service repair manual
 
1997 polaris xpress 300 2x4 service repair manual
1997 polaris xpress 300 2x4 service repair manual1997 polaris xpress 300 2x4 service repair manual
1997 polaris xpress 300 2x4 service repair manual
 
1996 polaris xpress 300 2x4 service repair manual
1996 polaris xpress 300 2x4 service repair manual1996 polaris xpress 300 2x4 service repair manual
1996 polaris xpress 300 2x4 service repair manual
 
1996 polaris xpress 400 l service repair manual
1996 polaris xpress 400 l service repair manual1996 polaris xpress 400 l service repair manual
1996 polaris xpress 400 l service repair manual
 
1996 polaris magnum 425 6x6 service repair manual
1996 polaris magnum 425 6x6 service repair manual1996 polaris magnum 425 6x6 service repair manual
1996 polaris magnum 425 6x6 service repair manual
 
1996 polaris trail boss 250 service repair manual
1996 polaris trail boss 250 service repair manual1996 polaris trail boss 250 service repair manual
1996 polaris trail boss 250 service repair manual
 
1995 JEEP GRAND CHEROKEE Service Repair Manual
1995 JEEP GRAND CHEROKEE Service Repair Manual1995 JEEP GRAND CHEROKEE Service Repair Manual
1995 JEEP GRAND CHEROKEE Service Repair Manual
 

Recently uploaded

Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlysanyuktamishra911
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).pptssuser5c9d4b1
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduitsrknatarajan
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingrknatarajan
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Christo Ananth
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 

Recently uploaded (20)

Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 

Car Dealer Database Term Project Group and Entity Relationship Diagram

  • 2. Group Members  1. Mohammad Rahmat  2. Furkan Zumrut  3. Emin Avukat  4. Metin Tekin  5. Muhammet Samil Altin
  • 3. Project Details  Car dealer company database:  Require  information about car stock  Require  information about details  Require  information about visual looks
  • 4. Data Required  Name  name as TEXT data given to each car for ease of data view and to avoid confusion  Model  model of car as DATE data, given in terms of Gregorian calendar  Condition  condition as TEXT data, showing if car is new or used  0-100 KM Fuel Expense  fuel expense per 100 KM recorded as a DOUBLE data
  • 5. Data Required  Color  color of the car in the form of TEXT data  Horsepower  the amount of horsepower produced by the engine of the car stored as INTEGER data  Mileage  the distance travelled by car if it is used, zero in case its new – stored as INTEGER value  Price  price of car given in USD ($) stored as DOUBLE data
  • 6. Data Required  Registered Date  the date that the car was entered to database as DATE value  Type  the type of car stored as TEXT data  Category  the manufacturer name of the car as TEXT data  Sub-Category  the model line of the car as TEXT data
  • 7. Data Required  Gear  the gear type of the car – automatic or manual – stored as TEXT data  Interior  the interior design of car – either default or custom – stored as TEXT data  Rim  the rims the car has also stored as a TEXT data  Tire  the tire the car currently has, recorded as a TEXT data
  • 8. Data Required  Photograph  an image of the car stored by URL to hosting site, stored as TEXT data  User  credentials of store employee to manage stock and sales
  • 9. Entities – their attributes & restrictions  auto ENTITY:  Attributes:  01. autoid – id of car  Constraint – primary key (auto_pkey)  Constraint – NOT NULL  02. auto100km – fuel usage by car per 100 km  Constraint – NOT NULL  03. autocolor – color of the car  Constraint – NOT NULL  04. autohand – condition of car – first hand or second hand (used or new)  Constraint – NOT NULL
  • 10. Entities – their attributes & restrictions  05. autohp – horsepower of car  Constraint – NOT NULL  06. autokm – mileage of car  Constraint – NOT NULL  07. automodel – model of car  Constraint – NOT NULL  08. autoname – name for car  Constraint – NOT NULL  09. autoprice – price of car  Constraint – NOT NULL  10. autoregisterdate – date car was added to stock  Constraint – NOT NULL
  • 11. Entities – their attributes & restrictions  13. autotype – type of car  Constraint – NOT NULL  14. categoryid – manufacturer of car  Constraint – foreign key (fk2dddafaaaeeab)  REFERENCES autocategory (categoryid)  Constraint – NOT NULL  15. autofuelid – fuel type of car  Constraint – foreign key (fk2dddafa270b28a)  REFERENCES autofuel (autofuelid)  Constraint – NOT NULL
  • 12. Entities – their attributes & restrictions  16. autogearid – gear type of car  Constraint – foreign key (fk2dddafa3428ffc)  REFERENCES autogear (autogearid)  Constraint – NOT NULL  17. autointerriorid – interior design of car  Constraint – foreign key (fk2dddafead5dc64)  REFERENCES autointerrior (autointerriorid)  Constraint – NOT NULL  18. autorimid – rim type of car  Constraint – NOT NULL  Constraint – foreign key (fk2dddafe4d91de4)  REFERENCES autorim (autorimid)
  • 13. Entities – their attributes & restrictions  19. subcategoryid – sucategory of car, model line of car  Constraint – NOT NULL  Constraint – foreign key (fk2dddaf407318a3)  REFERENCES autosubcategory (subcategoryid)  20. autotireid – tires of the car  Constraint – foreign key (fk2dddafb9b7716e)  REFERENCES autotire (autotireid)  Constraint – NOT NULL
  • 14. Entities – their attributes & restrictions  autocategory ENTITY:  Attributes:  01. categoryid – id of category  Constraint – primary key (autocategory_pkey)  Constraint – NOT NULL  02. categoryname – name of category  Constraint – NOT NULL
  • 15. Entities – their attributes & restrictions  autofuel ENTITY:  Attributes:  01. autofuelid – id of fuel  Constraint – primary key (autofuel_pkey)  Constraint – NOT NULL  02. autofuelname – fuel type nam  Constraint – NOT NULL
  • 16. Entities – their attributes & restrictions  autogear ENTITY:  Attributes:  01. autogearid – id of gear  Constraint – primary key (autogear_pkey)  Constraint – NOT NULL  02. autogearname – gear type name  Constraint – NOT NULL
  • 17. Entities – their attributes & restrictions  autoimage ENTITY:  Attributes:  01. autoimageid – id of image  Constraint – primary key (autoimage_pkey)  Constraint – NOT NULL  02. autoid – car id from auto table  Constraint – foreign key (fk638f010cacd7b9fe)  REFERENCES auto (autoid)  Constraint – NOT NULL  03. autoimageurl – url of image  Constraint – NOT NULL
  • 18. Entities – their attributes & restrictions  autointerrior ENTITY:  Attributes:  01. autointerriorid – id of interior design  Constraint – primary key (autointerrior_pkey)  Constraint – NOT NULL  02. autointerriorname – name of car interior design  Constraint – NOT NULL
  • 19. Entities – their attributes & restrictions  autorim ENTITY:  Attributes:  01. autorimid – id of rim  Constraint – primary key (autorim_pkey)  Constraint – NOT NULL  02. autorimname – name of car rim  Constraint – NOT NULL
  • 20. Entities – their attributes & restrictions  autosubcategory ENTITY:  Attributes:  01. autosubcategoryid – id of subcategory  Constraint – primary key (autosubcategory_pkey)  Constraint – NOT NULL  02. categoryid – id of category from category table  Constraint – foreign key (fkfd684a2faaaeeab)  REFERENCES autocategory (categoryid)  Constraint – NOT NULL  03. autosubcategoryname – name of subcategory  Constraint – NOT NULL
  • 21. Entities – their attributes & restrictions  autotire ENTITY:  Attributes:  01. autotireid – id of tire  Constraint – primary key (autotire_pkey)  Constraint – NOT NULL  02. autotirename – name of tire  Constraint – NOT NULL
  • 22. Entities – their attributes & restrictions  user ENTITY:  Attributes:  01. userid – id of user  Constraint – primary key (user_pkey)  Constraint – NOT NULL  02. mail – email address of user  Constraint – NOT NULL  03. namesurname – name and surname of user  Constraint – NOT NULL  04. password – password for logging in  Constraint – NOT NULL
  • 24. Relationships  auto Entity:  @Many-to-One  AutoCategory(categoryid):  many cars  one category  AutoFuel(autofuelid)  many cars  one fuel  AutoGear(autogearid)  many cars  one gear  AutoGear(autogearid)  many cars  one gear
  • 25. Relationships  AutoRim(autorimid)  many cars  one rim  AutoSubCategory(subcategoryid)  many cars  one subcategory  AutoTires(autotireid)  many cars  one tire  @One-to-Many  AutoImages(autoid)  one car  many images
  • 26. Relationships  autocategory Entity:  @One-to-Many  AutoSubCategory(categoryid):  one category  many subcategory  Auto(categoryid)  one category  many cars  user Entity:  User has no relationship with other tables.
  • 27. Relationships  autofuel Entity:  @One-to-Many  Auto(autofuelid):  one fuel  many cars  autogear Entity:  @One-to-Many  Auto(autogearlid):  one gear  many cars
  • 28. Relationships  autorim Entity:  @One-to-Many  Auto(autorimid):  one rim  many cars  autotire Entity:  @One-to-Many  Auto(autotireid):  one tire  many cars
  • 29. Relationships  autoimage Entity:  @Many-to-One  Auto(autoid):  many images  one car  autosubcategory Entity:  @Many-to-One  AutoCategory(categoryid):  many subcategories  one category  @One-to-Many  Auto(subcategoryid)  one subcategory  many cars
  • 30. Concept Of Database Database Entity Relationships
  • 32. Web Service to Provide 24/7 Service  The database includes a webservice defined @http://54.72.196.42:8080/carsales-1.0/ws  The webservice is built through hibernate framework and includes all the necessary HQL codes
  • 33. SQL Codes  All sql codes for INSERT, UPDATE, DELETE, ADD can are at the file given below:  METHOD'S SQL CODES.docx  All sql codes for creation of TABLES are at the file given below:  TABLE'S SQL CODES.docx