Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Database > SQL Language
|
SQL Language SQL Language discussions not specific to a particular RDBMS program or vendor.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Language section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 11th, 2007, 07:29 AM
Authorized User
 
Join Date: Jan 2007
Posts: 46
Thanks: 2
Thanked 1 Time in 1 Post
Default What is happening here?

I have these 2 tables in my SCOTT schema:

EMP:

Name Null? Type
EMPNO NOT NULL NUMBER(4)
ENAME VARCHAR2(10)
JOB VARCHAR2(9)
MGR NUMBER(4)
HIREDATE DATE
SAL NUMBER(7,2)
COMM NUMBER(7,2)
DEPTNO NUMBER(2)


DEPT:

Name Null? Type
DEPTNO NOT NULL NUMBER(2)
DNAME VARCHAR2(14)
LOC VARCHAR2(13)

I inserted the following values:
insert into emp(empno,deptno)
values(7777,40);

Then i ran this query:
select e.ename,d.dname,d.loc
from emp e inner join dept d
on e.deptno = d.deptno
where ename <> '_%_'
order by 3;

I am getting results that have enames only but not the ones that were left empty.Why is that?
Now what is happening here exactly i want to know?

__________________
MAXOOD!

Life is an endless journey towards perfection





Similar Threads
Thread Thread Starter Forum Replies Last Post
weird namespace thing happening Martijn XSLT 6 January 26th, 2007 01:00 PM
Eight chapter - very strange things happening marjan BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 2 May 1st, 2004 06:32 AM
Crazy Thing happening Kenny Alligood Access VBA 10 February 17th, 2004 12:26 PM
Getting Simple XML Reading In ASP Happening munkimagik XML 1 June 19th, 2003 09:22 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.