Home      Mainframe Forum      Mainfarme Tutorials      IBM Manuals      Mainframe Interview Questions      Mainframe Books      IT News     SiteMap     Downloads


     
 
MAINFRAME - TIP OF THE DAY : programming pearls - The fastest algorithm can frequently be replaced by one that is almost as fast and much easier to understand.

Google
 
Web mainframegurukul.com

Welcome to the mainframegurukul forums.

You are currently viewing our mainframe forums as a guest which gives you limited access to view most discussions, articles. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos. 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 support at admin@mainframegurukul.com


DB2 query !!

 
Post new topic   Reply to topic    mainframegurukul.com Forum Index -> DB2 SQL - DB2 PROGRAMMING
  View previous topic :: View next topic  
Author Message
pradeepshan
Guest





PostPosted: Thu Feb 16, 2006 8:20 pm    Post subject: DB2 query !! Reply with quote

how will you select a rec from a table having a name with 'c' starts in the second position?

eg:mclaran

Table contain Empname, empno,city

also if suppose the name is '_caterina' how will you get it?
Back to top

Guest






PostPosted: Thu Feb 16, 2006 11:18 pm    Post subject: Reply with quote

select from <list of columns to be selected>
from <table name>
where name like '_c%';
Back to top
lucky.rohith
Member


Joined: 21 Aug 2006
Posts: 8

PostPosted: Thu Sep 14, 2006 7:17 am    Post subject: hi Reply with quote

select empname, city from emp where empname = '-c%'
Back to top
View user's profile Send private message
156138
Member


Joined: 29 Aug 2006
Posts: 15
Location: Chennai

PostPosted: Fri Sep 15, 2006 12:19 pm    Post subject: Db2 query Reply with quote

Select (colums whichever you want)
INTO(.......)
FROM table name A
WHERE A.name LIKE '_C%'
_________________
Regards,
Vinod Reddy.
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    mainframegurukul.com Forum Index -> DB2 SQL - DB2 PROGRAMMING All times are GMT + 5 Hours
Page 1 of 1



 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Related topics
 Topics   Replies   Author   Views   Last Post 
No new posts query 3 ram 2089 Tue Jun 09, 2009 6:14 am
maheshvamsi View latest post
No new posts Many JCL statements contain specific values designed to dire 1 Krishna 1216 Tue May 12, 2009 5:39 pm
Krishna View latest post
No new posts db2 query 4 thiyagucse 5588 Fri Aug 29, 2008 10:31 am
Krishna View latest post
No new posts SQL update query - need help urgently please 2 Prabhu 2955 Sat Oct 07, 2006 4:43 pm
ovreddy View latest post
No new posts query regarding matching field value 3 jasveer 2505 Mon Feb 20, 2006 3:51 pm
jasveer View latest post
 



This widget requires Flash Player 9 or better








Go to top of the page
 

Online ABEND Reference ||  JCL References ||  COBOL References ||  VSAM References ||  Tutorials by Drona Series ||  SQL tutorial ||  BOOKS  ||  DB2 INTERVIEW QUESTIONS ||  COBOL INTERVIEW QUESTIONS  ||  JCL INTERVIEW QUESTIONS ||  JCL2 INTERVIEW QUESTIONS ||  VSAM INTERVIEW QUESTIONS ||  CICS INTERVIEW QUESTIONS  ||  Online tutorials ||  Online ABEND Reference ||  JCL References ||  COBOL References ||  VSAM References ||  Tutorials by Drona Series ||  SQL tutorial ||  BOOKS  ||  SiteMap  ||  Expeditor Tutorial  ||  FILE-AID Tutorial  ||  Changeman Tutorial  ||  COBOL   ||  DB2   ||  JCL  ||  CICS  ||  VSAM  ||  DB2 Interview Questions ( 110 )   || Simple JCL Tutorials  || JCL Tutorial from MainframeGurukul.com   || Simple JCL Tutorial - Chapter1 ;|| Mainframe Forum - Tutorials  || Mainframe Tutorials

Drona Educational Forums - Mainframe Cobol DB2 CICS Board
Powered by phpBB