You are on page 1of 3
gm gE ee AGSTUN MENT —2 ao oq [22 FP USE FUNCTEONS only . 3 List _Ymployees whete name hovmy wu chowesters SELECT ENAME From emp WHERE LEMUTH (EwAme ) =u $ -— [oy Uist employees whose Job 63 howing F chovreeterd - “ Selecr _ENAME, JOR - From Emp where (ENUTU(JOB)=75 Find out how many times letters 6 occts In * pentagon Spore? - gevecr Leven C'pentraonspace’) LematH (REPLACE Ci Pera ewn space’, 3')) Feom Ovar $ uy [st te employees" whose job 1S havi Last [ost3 thevertes as ‘man’ SELECT eer JOB From €mMP WHERE §UGSTR.(I0B,3) = ‘MAN'S Aisploy atl Names. whose nome i$ having exastly 1b. SELECT EWAME From eme WHERE LEWaTH (EMAME) LENETH (REPLACE EwAme * L’)) = I TS Bispioy cept nam eg which axe having (eter d) sevect Dame FRom DEPT WHERE INSTR (DWAME*2') > OF Sy Aispley the of 04 khown below . Cott . Working aS a Clerk farns 3000 In coal Tete go ab tae nih eile lea Ro | os aa ee FE Soya a ee ee alia er or pe es ps hap I 8>__Colcuteeke “mumnleey of Lin Shing MEULLL’ SELECT LewerH(HELLLLL) LemeHr( REPLACE (ieee, 0) From Duet; ay PIS plow cur tne Employees nhoett sob hos a Shing “ man’. | SELECT Jon From emp c iy WHERE Twi{Te (JoR,* mans 1)>02 toy 197s ploy au me Employees ‘whole pb Godt with Shing ‘man’, SELECT EWAME, J0R fFeom emp i WHERE 'S065TR(J0B,9,3) = MAN’, jonployy au tne Employee : note ab: endg with hing | man’. SELECT Frame, JoR qn _FRom emp 2 WHERE 'SvBsTR (50g ,-3) = ‘man’ } 12h Bisploy the Pivst 3 charedtin, of Emam, __m_bwy cae TO Sw tything i. “upper — ~ pphe - Te “Qname Fy 7 ENTAGD W? ; [2 : : p Or" +hen clisploy aus OA PenTAtON’. _ ie sy _Aisploy tre vesutt fromm “the Bmp table ay below SMETH if G@ CLERIe amol geH ga scatamy 2000. Hove emit is Crome polumn, cLeeie is JOB and 2000 i$ +ne SAL Column and me wat gwedlrg 18 Literal gHings Seid wy List tne smnployees Wired on a veel nesdoy - SELECT Ewame, wrpepATe - FRom Emp ; | WHERE To-cHne CHEREDATE,” py). (WED! 5 Ls itt the ‘Pmrpleyees Wred on a leop year SELECT EMAME, MIREDATE Fpom emp WHERE mod (To-CHPR( NEREDATE ‘Wy’ ), We 05 [itr Litt qne Smpleyeer rived on a Sundoy ja me month ot moy. a Select Eneme, RORE DATE FROm_ €mMP a aN WHERE TO-CHae( HEPEDATE,© DY? )= SUN? AND To-cure (HER@ATE , © mow')= ‘may! 5 im

You might also like