بتاريخ: 10 مايو 200916 سنة comment_156408 i want to know how to search in the table with concern to upper case or lower case [يسار][/left] i want to bring me back bothi wrote this code but if i know a part of the name only as follow [/يسار]: for search with a part of the name:select empno,ename,salfrom empwhere ename like 'sm%';[يسار] for bring back both names in upper and lower: [/يسار] select empno,ename,sal[يسار] from emp [/يسار] where upper (ename)=upper('smith');but i cannot do it both can any one help me plzthanks تقديم بلاغ
بتاريخ: 10 مايو 200916 سنة comment_156412 take this for the first select empno,ename,sal from emp where lower(ename) like lower('sm%') or select empno,ename,sal from emp where upper(ename) like upper('sm%') but second correct try again تقديم بلاغ
بتاريخ: 10 مايو 200916 سنة كاتب الموضوع comment_156419 thanks for your fast response but i try it and it came back with result (no row selected) but there is records to show تقديم بلاغ
بتاريخ: 10 مايو 200916 سنة comment_156420 no my dear :the query is correct and bring resultmy be this row delete from your databse attention you work in scott schema تقديم بلاغ
بتاريخ: 11 مايو 200916 سنة comment_156468 select empno,ename,sal from emp where (upper(ename) like 'sm%') or (lower(ename) like 'sm%'); تقديم بلاغ
بتاريخ: 11 مايو 200916 سنة كاتب الموضوع comment_156509 no my dear : the query is correct and bring resultmy be this row delete from your databseattention you work in scott schema [يسار][/يسار]i am sorry i wrote your code with = that is the mistake i am sorry again you are correct تقديم بلاغ
انضم إلى المناقشة
يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.