Click here to Skip to main content
15,898,581 members
Home / Discussions / Database
   

Database

 
AnswerRe: e-blood bank Pin
Ashfield2-Sep-09 1:28
Ashfield2-Sep-09 1:28 
GeneralRe: e-blood bank Pin
Garth J Lancaster2-Sep-09 1:41
professionalGarth J Lancaster2-Sep-09 1:41 
AnswerRe: e-blood bank [modified] Pin
annathor2-Sep-09 1:42
annathor2-Sep-09 1:42 
GeneralRe: e-blood bank Pin
samawat8-Dec-09 4:49
samawat8-Dec-09 4:49 
GeneralRe: e-blood bank Pin
samawat8-Dec-09 4:51
samawat8-Dec-09 4:51 
AnswerRe: e-blood bank Pin
AlexeiXX33-Sep-09 9:47
AlexeiXX33-Sep-09 9:47 
QuestionExporting a database Pin
MarkB7771-Sep-09 23:09
MarkB7771-Sep-09 23:09 
AnswerRe: Exporting a database Pin
SeMartens2-Sep-09 0:14
SeMartens2-Sep-09 0:14 
AnswerRe: Exporting a database Pin
Jerry Hammond2-Sep-09 2:34
Jerry Hammond2-Sep-09 2:34 
AnswerRe: Exporting a database Pin
Abhishek Sur2-Sep-09 9:53
professionalAbhishek Sur2-Sep-09 9:53 
AnswerRe: Exporting a database Pin
εїзεїзεїз2-Sep-09 11:43
εїзεїзεїз2-Sep-09 11:43 
GeneralRe: Exporting a database Pin
Abhishek Sur2-Sep-09 11:59
professionalAbhishek Sur2-Sep-09 11:59 
GeneralRe: Exporting a database Pin
εїзεїзεїз2-Sep-09 13:42
εїзεїзεїз2-Sep-09 13:42 
QuestionWhat is SQL Query:Master child table [modified] Pin
xodeblack1-Sep-09 20:24
xodeblack1-Sep-09 20:24 
AnswerRe: What is SQL Query:Master child table Pin
Mycroft Holmes1-Sep-09 21:14
professionalMycroft Holmes1-Sep-09 21:14 
GeneralRe: What is SQL Query:Master child table Pin
xodeblack1-Sep-09 22:39
xodeblack1-Sep-09 22:39 
GeneralRe: What is SQL Query:Master child table Pin
Mycroft Holmes1-Sep-09 22:50
professionalMycroft Holmes1-Sep-09 22:50 
AnswerRe: What is SQL Query:Master child table Pin
Nisha Agrawal7-Sep-09 3:57
Nisha Agrawal7-Sep-09 3:57 
Question[Message Deleted] Pin
teja.murali31-Aug-09 19:32
teja.murali31-Aug-09 19:32 
AnswerRe: display cities while clicking country Pin
Mycroft Holmes31-Aug-09 19:45
professionalMycroft Holmes31-Aug-09 19:45 
AnswerRe: display cities while clicking country Pin
Blue_Boy31-Aug-09 23:37
Blue_Boy31-Aug-09 23:37 
QuestionDatabase design and queries Pin
rockyrules31-Aug-09 19:01
rockyrules31-Aug-09 19:01 
Hi dear all,

I am new to database design and database structure, In my internal test i faced one database design problem, tried to solve this but i am still having doubts so please experts give me clear solution for this
Problem is
Media bank is a web application for storing and retrieval of Media files. In Media bank, files are stored in folders (just like in the case of windows). A folder can have sub-folders to any level of depth. A file in a folder can exist either in published or un-published state.
Every folder will have the following information associated with it: folder name and folder description.
Every file will have the following information associated with: file name, file description, physical location in server, size in kbs, type of file.

1. Write a normalized database design for the above mentioned scenario. Also show primary keys, foreign keys, and also what kind of relationship (1-M , M-1 or M-M) exists between them.

2. We add a new feature to Media bank: A file can contain different versions, but only one version will be active at a time. Any version of a file can be set to active by the administrative user.
Modify the database deign above to incorporate this new feature.

3. Write SQL Query to retrieve
a. All files of type ‘images’ with the following information:
File name, File description, state of file (unpublished/published), Folder name, Folder description.

b. All folders with following information:
Folder name, Number of files in published state in that folder

c. All files with following information
File name, complete folder path (all parents until root folder)

Thanks in advance
AnswerRe: Database design and queries Pin
Mycroft Holmes31-Aug-09 19:26
professionalMycroft Holmes31-Aug-09 19:26 
QuestionGetting the right sysntax for this. Pin
Rudyvb0831-Aug-09 11:00
Rudyvb0831-Aug-09 11:00 
AnswerRe: Getting the right sysntax for this. Pin
Edbert P31-Aug-09 16:48
Edbert P31-Aug-09 16:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.