Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Sql

This is a discussion on Sql within the JavaScript forums, part of the Web Development category; What is stored procedure? explain the syntax...

Go Back   Geeks Talk > Web Development > JavaScript
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 03-25-2009
Junior Member
 
Join Date: Mar 2009
Location: mysore
Posts: 25
Thanks: 9
Thanked 0 Times in 0 Posts
shilpamj is on a distinguished road
Sql

What is stored procedure? explain the syntax
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-05-2009
Expert Member
 
Join Date: May 2009
Location: Bangalore
Posts: 991
Thanks: 155
Thanked 420 Times in 201 Posts
rijus is just really nicerijus is just really nicerijus is just really nicerijus is just really nicerijus is just really nice
Re: Sql

Hi friend,

A stored procedure is a group of SQL statements that form a logical unit and perform a particular task, and they are used to encapsulate a set of operations or queries to execute on a database server.

Eg:

operations on an employee database (hire, fire, promote, lookup) could be coded as stored procedures executed by application code. Stored procedures can be compiled and executed with different parameters and results, and they may have any combination of input, output, and input/output parameters.

Syntax:

create procedure SHOW_SUPPLIERS
as
select SUPPLIERS.SUP_NAME, COFFEES.COF_NAME
from SUPPLIERS, COFFEES
where SUPPLIERS.SUP_ID = COFFEES.SUP_ID
order by SUP_NAME

Thanks,
Riju.
Reply With Quote
  #3 (permalink)  
Old 08-06-2009
Moderator
 
Join Date: Jun 2007
Location: Bangalore,India
Posts: 1,860
Thanks: 9
Thanked 168 Times in 142 Posts
debasisdas has a spectacular aura aboutdebasisdas has a spectacular aura about
Re: Sql

Quote:
Originally Posted by rijus View Post
Hi friend,

Syntax:

create procedure SHOW_SUPPLIERS
as
select SUPPLIERS.SUP_NAME, COFFEES.COF_NAME
from SUPPLIERS, COFFEES
where SUPPLIERS.SUP_ID = COFFEES.SUP_ID
order by SUP_NAME

Thanks,
Riju.
May i know your syntax belongs to which RDBMS ?
Reply With Quote
  #4 (permalink)  
Old 08-07-2009
Junior Member
 
Join Date: Aug 2009
Location: Delhi
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
vivekgeek is on a distinguished road
Re: Sql

Hi i want to clear my concepts on Joins and on Normalization topics.

Could you please refer me the site please so that i can start directly reading from the site!
Reply With Quote
Reply

  Geeks Talk > Web Development > JavaScript

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -4. The time now is 03:42 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved