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

Database

 
AnswerRe: insert rows into single table from two table which has different columns Pin
Anudeep Jaiswal - MCA24-Nov-13 19:22
Anudeep Jaiswal - MCA24-Nov-13 19:22 
Questionhow to use this code in SQL Pin
jojoba207-Oct-13 20:52
jojoba207-Oct-13 20:52 
AnswerRe: how to use this code in SQL Pin
Eddy Vluggen8-Oct-13 0:30
professionalEddy Vluggen8-Oct-13 0:30 
QuestionRe: how to use this code in SQL Pin
jojoba208-Oct-13 1:08
jojoba208-Oct-13 1:08 
AnswerRe: how to use this code in SQL Pin
Eddy Vluggen8-Oct-13 5:00
professionalEddy Vluggen8-Oct-13 5:00 
QuestionRe: how to use this code in SQL Pin
jojoba208-Oct-13 5:26
jojoba208-Oct-13 5:26 
SuggestionRe: how to use this code in SQL Pin
Eddy Vluggen9-Oct-13 8:57
professionalEddy Vluggen9-Oct-13 8:57 
QuestionRe: how to use this code in SQL Pin
jojoba208-Oct-13 4:44
jojoba208-Oct-13 4:44 
this is example but i dont know where to exicute the code (is it possible to have in sql server 2008?

http://archivaleffort.academickids.com/encyclopedia/index.php/Object-relational_database[^]
Comparison to RDBMS

In an RDBMS, it would be fairly common to see SQL statements like this:
  CREATE TABLE Customers  (
      Id          CHAR(12)    NOT NULL PRIMARY KEY,
      Surname     VARCHAR(32) NOT NULL,
      FirstName   VARCHAR(32) NOT NULL,
      DOB         DATE        NOT NULL
   );
   SELECT InitCap(Surname) || ', ' || InitCap(FirstName)
     FROM Customers
    WHERE Month(DOB) = Month(getdate())
      AND Day(DOB) = Day(getdate())
which some OO fans would describe as overly complex logic. Furthermore, most current SQL databases allow the creation of custom functions, which would allow the query to be expressed as:
   SELECT Formal(Id)
     FROM Customers
    WHERE Birthday(Id) = Today()
In an object-relational database, one might see something like this, where the data types and expressions such as BirthDay() are user-defined.
   CREATE TABLE Customers (
     Id           Cust_Id     NOT NULL  PRIMARY KEY,
     Name         PersonName  NOT NULL,
     DOB          DATE        NOT NULL
   );
   SELECT Formal( C.Name )
     FROM Customers C
    WHERE BirthDay ( C.DOB ) = TODAY;

AnswerRe: how to use this code in SQL Pin
Eddy Vluggen8-Oct-13 9:00
professionalEddy Vluggen8-Oct-13 9:00 
QuestionRe: how to use this code in SQL Pin
jojoba208-Oct-13 18:20
jojoba208-Oct-13 18:20 
AnswerRe: how to use this code in SQL Pin
Richard MacCutchan8-Oct-13 20:42
mveRichard MacCutchan8-Oct-13 20:42 
QuestionRe: how to use this code in SQL Pin
jojoba208-Oct-13 22:23
jojoba208-Oct-13 22:23 
AnswerRe: how to use this code in SQL Pin
Richard MacCutchan8-Oct-13 23:19
mveRichard MacCutchan8-Oct-13 23:19 
QuestionRe: how to use this code in SQL Pin
jojoba208-Oct-13 23:31
jojoba208-Oct-13 23:31 
AnswerRe: how to use this code in SQL Pin
Richard MacCutchan8-Oct-13 23:37
mveRichard MacCutchan8-Oct-13 23:37 
AnswerRe: how to use this code in SQL Pin
Eddy Vluggen9-Oct-13 0:29
professionalEddy Vluggen9-Oct-13 0:29 
QuestionRe: how to use this code in SQL Pin
jojoba209-Oct-13 0:54
jojoba209-Oct-13 0:54 
AnswerRe: how to use this code in SQL Pin
Eddy Vluggen9-Oct-13 5:05
professionalEddy Vluggen9-Oct-13 5:05 
AnswerRe: how to use this code in SQL Pin
Simon_Whale9-Oct-13 6:08
Simon_Whale9-Oct-13 6:08 
AnswerRe: how to use this code in SQL Pin
jschell9-Oct-13 8:04
jschell9-Oct-13 8:04 
QuestionRe: how to use this code in SQL Pin
jojoba209-Oct-13 20:55
jojoba209-Oct-13 20:55 
AnswerRe: how to use this code in SQL Pin
Simon_Whale9-Oct-13 21:56
Simon_Whale9-Oct-13 21:56 
QuestionRe: how to use this code in SQL Pin
jojoba209-Oct-13 22:21
jojoba209-Oct-13 22:21 
AnswerRe: how to use this code in SQL Pin
Simon_Whale9-Oct-13 22:23
Simon_Whale9-Oct-13 22:23 
AnswerRe: how to use this code in SQL Pin
Eddy Vluggen10-Oct-13 0:28
professionalEddy Vluggen10-Oct-13 0:28 

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.