Click here to Skip to main content
15,888,088 members
Home / Discussions / Database
   

Database

 
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 
AnswerRe: Getting the right sysntax for this. Pin
Mycroft Holmes31-Aug-09 19:23
professionalMycroft Holmes31-Aug-09 19:23 
QuestionSSRS Visibility Option Pin
bwood202031-Aug-09 7:09
bwood202031-Aug-09 7:09 
AnswerRe: SSRS Visibility Option Pin
Edbert P31-Aug-09 16:50
Edbert P31-Aug-09 16:50 
QuestionCreate Cubes (Analysis Services) in Visual Studio 2005 Pin
Mschauder31-Aug-09 5:10
Mschauder31-Aug-09 5:10 
Questionconnecting to local sql server 2005 from website Pin
manish.m.meshram31-Aug-09 0:28
manish.m.meshram31-Aug-09 0:28 
AnswerRe: connecting to local sql server 2005 from website Pin
dan!sh 31-Aug-09 0:32
professional dan!sh 31-Aug-09 0:32 
GeneralRe: connecting to local sql server 2005 from website Pin
manish.m.meshram31-Aug-09 0:38
manish.m.meshram31-Aug-09 0:38 
GeneralRe: connecting to local sql server 2005 from website Pin
dan!sh 31-Aug-09 0:45
professional dan!sh 31-Aug-09 0:45 
GeneralRe: connecting to local sql server 2005 from website Pin
manish.m.meshram31-Aug-09 0:51
manish.m.meshram31-Aug-09 0:51 
GeneralRe: connecting to local sql server 2005 from website Pin
dan!sh 31-Aug-09 1:07
professional dan!sh 31-Aug-09 1:07 
GeneralRe: connecting to local sql server 2005 from website Pin
manish.m.meshram31-Aug-09 1:12
manish.m.meshram31-Aug-09 1:12 
AnswerRe: connecting to local sql server 2005 from website Pin
Vimalsoft(Pty) Ltd31-Aug-09 1:07
professionalVimalsoft(Pty) Ltd31-Aug-09 1:07 
AnswerRe: connecting to local sql server 2005 from website Pin
εїзεїзεїз31-Aug-09 7:12
εїзεїзεїз31-Aug-09 7:12 
QuestionNot Null field script Pin
abcurl31-Aug-09 0:16
abcurl31-Aug-09 0:16 

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.