In the results of query with consecutive Dates
I have a table like this:volume of queue data_date
01/09/01 2324, 353
01/09/03 2324, 34
2324 01/09/04 43
2325 01/09/01 53
01/09/02 2325, 66
I want to have output like this:
volume of queue data_date
01/09/01 2324, 353
* 2324 01/09/02 0 *.
01/09/03 2324, 34
2324 01/09/04 43
2325 01/09/01 53
01/09/02 2325, 66
Note the filled in date 01/09/02.
What I'm doing now is using a function table in select pipeline than iteratates the date of the execution of a statement range for each date and make a current output. A little slow, but faster than the old solution below.
I also define operations using a single query that contains trade unions and disadvantages. This has proved to be slow.
The only thing I have not tried is to have a stored proc popuate the value 0 for the missing date.
Is there another way to do that is effective?
I use a 10g database, but soon the data will be brought to a 11g.
Welcome to the forums!
I would say that one of the best ways on the latest versions of Oracle using the PARTITION OUTER JOIN.
See the following link for examples/explanation: partition outer join in oracle 10 g
Tags: Database
Similar Questions
-
Tried to print thick paper / cartridge paper through the front power and the result is stained with weird colors. Printing through the standard power supply is perfect. Thanks in advance for your help.
Standigay
Tried to print thick paper / cartridge paper through the front power and the result is stained with weird colors. Printing through the standard power supply is perfect. Thanks in advance for your help.
Standigay
Hello
This looks like a good question for the support of Epson.
Help and Support - Epson America, Inc..:
http://www.Epson.com/cgi-bin/store/help/help.jsp?BV_UseBVCookie=Yes&category=productsConcerning
-
JavaScript Confirm box depends on the results of query
Hello
I use Apex version 3.2.1 and I'm looking for a way to do the following, any help much appreciated:
A javascript confirm will appear when the user sends a page if the result of a query returns something, the query should look like this...
SELECT * FROM LINKEDPROJECTS
WHERE ENV_ID =: P18_ENV_ID
AND ID_COMP =: P18_COMP_ID
AND DATE_FROM < = to_date (: P18_DATE_TO, 'DD-MON-YY')
AND DATE_TO > = to_date (: P18_DATE_FROM, 'DD-MON-YY')
If it returns no data page will present as usual, if it does not return the data from the confirmation box will appear, and the message will be also the result of a query-driven.
If the message would be something like...
Project (s) + "select the NAME OF PROJECTS WHERE ID IN (SELECT PROJ_ID FROM LINKEDPROJECTS WHERE ENV_ID =: P18_ENV_ID +)"
+ AND IDENTIFIANT_COMPOSANT =: P18_COMP_ID +.
+ AND DATE_FROM < = to_date(:P18_DATE_TO, 'DD-MON-YY') +.
+ AND DATE_TO > = to_date (: P18_DATE_FROM, ' MON-JJ-AA "") "+ have this environment for the dates you selected. Do you want to continue with the reservation?
By selecting Yes submits the page, select no hands it to the page.Had this work now, if it can help someone else out there that's what looked like my javascript in the end...
function beforeSubmit() {
var env_id = document.getElementById('P18_ENV_ID').value;
var comp_id = document.getElementById('P18_COMP_ID').value;
var date_from = document.getElementById('P18_DATE_FROM').value;
var date_to = document.getElementById('P18_DATE_TO').value;
var get = new htmldb_Get(null,html_GetElement('pFlowId').value, 'APPLICATION_PROCESS=BOOKEDVALIDATION',0);
get.add ('P18_ENV_ID',env_id);
get.add ('P18_COMP_ID',comp_id);
get.add ('P18_DATE_FROM',date_from);
get.add ('P18_DATE_TO',date_to);
var gReturn = get.get();
if (gReturn =="")
{
doSubmit('CREATE');
}
else
{
var answer=confirm("This environment is booked to following project(s) on the dates specified, do you want to continue with the booking?" + gReturn);
if(answer)
{
doSubmit('CREATE');
}
else{}
}
} -
Error exporting in the level of query with several conditions
When I run the following query to export with the result.
C:\Documents and Settings\ITL > exp scott/tiger@orcl tables = (emp) QUERY = "" WHERE deptno > 10 and sal! 2850 = "' LOG = log011.log FILE = exp.dmp"
Export: Release 10.2.0.1.0 - Production on Wed Jan 30 10:01:27 2013
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With partitioning, OLAP and Data Mining options
Export performed WE8MSWIN1252 and AL16UTF16 NCHAR character set
About to export specified tables by conventional means...
. . export the rows in the table EMP 10 exported
EXP-00091: exporting more than questionable statistics.
EXP-00091: exporting more than questionable statistics.
Export completed successfully with warnings.
But when I run it with the following condition, then it displays the following error...
C:\Documents and Settings\ITL > exp scott/tiger@orcl tables = (emp) QUERY ='"WHERE deptno > 10 and work!" = 'CLERK' ' ' LOG = log011.log FILE = Exp01.dmp.
LRM-00111: no closing quote for value 'LOG = log01'
EXP-00019: failure of the treatment of parameters, type 'HELP EXP = Y' help
EXP-00000: export completed unsuccessfully
C:\Documents and Settings\ITL > exp scott/tiger@orcl tables = (emp) QUERY = "WHERE deptno > 10 and work! = 'CLERK' ' LOG = log5.log FILE = exp01.dmp
LRM-00112: multiple values not allowed for the parameter "query".
EXP-00019: failure of the treatment of parameters, type 'HELP EXP = Y' help
EXP-00000: export completed unsuccessfully
Please suggest a solution for this.Hello
Single quotes used for CLERKS are very probably the origin of the problem.
C:\Documents and Settings\ITL > exp scott/tiger@orcl tables = (emp) QUERY ='"WHERE deptno 10 > and job!" = 'CLERK' ' ' LOG = log011.log FILE = Exp01.dmp.try to replace this
C:\Documents and Settings\ITL > exp scott/tiger@orcl tables = (emp) QUERY ='"WHERE deptno 10 > and job!" = "REGISTRAR" "' LOG = log011.log FILE = Exp01.dmp.Two single quotes (no quotes) to place an apostrophe for CLERK.
Thank you
Padma... -
Want to Elimate 'SYS. ODCIVARCHAR2LIST"by the result of query
Hello
Oracle Version installed is 11.0.2r6. I have a dummy table with data as below:
STID ADDRESS Type_de_fichier
-------- ------------------ ----------------
SALES of ABC 9927 has 0
TRANSFER of XYZ 9927 b 0
TRANSFER of ABC 9927 has 0
TRANSFER of XYZ 9927 b 0
I want that the output voltage:
STID ADDRESS Type_de_fichier
-------- ------------------ ----------------
9927-0 ABC SALES, TRANSFER
TRANSFER of XYZ 9927 b 0
I used 2 methods to achieve the same result, but face some problems.
Method 1:
--------------
SELECT STID, ADDRESS, LISTAGG (File_Type, ',') within THE GROUP (ORDER BY Type_de_fichier) AS file_type
MODELING
STID GROUP, ADDRESS;
I got the output as:
STID ADDRESS Type_de_fichier
-------- ------------------ ----------------
9927-0 ABC SALES, TRANSFER
9927b 0 XYZ, TRANSFER
Method 2:
-------------
SELECT STID,
ADDRESS,
CAST (COLLECT (SEPARATE File_Type) AS SYS. ODCIVARCHAR2LIST) AS File_Type
FROM (SELECT STID, ADDRESS, MODEL Type_de_fichier)
STID GROUP, ADDRESS;
I got the output as:
STID ADDRESS Type_de_fichier
-------- ------------------ ----------------
9927-0 ABC SYS. ODCIVARCHAR2LIST (SALES, TRANSFER)
9927b 0 XYZ SYS. ODCIVARCHAR2LIST (TRANSFER)
Same method 2 gave good result which I like, "SYS. ODCIVARCHAR2LIST"is coming as a prefix in the result. I tried to use the replace, but it does not work. I tried to use the "wm_concat" method, but it does not work.
Can someone help me please to get there? I want a simple Select statement, not the functions/procedures etc.
Thank you
Stéphane.And what about:
SELECT STID, ADDRESS, LISTAGG(File_Type, ',') WITHIN GROUP (ORDER BY File_Type) AS file_type FROM ( SELECT DISTINCT STID, ADDRESS, File_Type FROM DUMMY ) GROUP BY STID, ADDRESS;
-
To access the results of query XML MSSQL
I use MS SQL Server with a query of the form: SELECT * FROM tablename FOR XML AUTO [, XMLDATA]
(The brackets above to indicate optional use of the XMLDATA option and are not explicit)
I'm capable of outputting the result in passing the name of the query to CFDUMP so I know that the SQL statement returns the correct information. However, I want to store the XML in a string variable, in the end to go to XMLParse (for example).
How to access the ResultSet? Columns in the table are not relevant in the case of XML output.For anyone interested, the answer is that the query can be serialized to a string via CFWDDX.
-
How to load the 4155B file, run it and record the results to Excel with Labview
Hi, I need model command support, sending to 4155B using Labview.
I would like to load the file from the disk on 4155B using Labview. First of all, I tried to write the command using MAX and found that the command that I write to 4155 B contains the error message. "I sent the two GT ' MYFILE P" and : MMEM:LOADTAT 0, filename orders every time to 4155 B, but failed. May I know what kind of command must send to the communication with the instrument?
Besides, I need to run the content of the file, I should send it OUT @Hp4155; "' XE ' command?
After running, I need save the result in excel file back.
Grateful if someone can help. Thanks in advance for your help.
Kind regards
Yong
SH_Yong wrote:
Hi, I need model command support, sending to 4155B using Labview.
I would like to load the file from the disk on 4155B using Labview. First of all, I tried to write the command using MAX and found that the command that I write to 4155 B contains the error message. "I sent the two GT ' MYFILE P" and : MMEM:LOADTAT 0, filename orders every time to 4155 B, but failed. May I know what kind of command must send to the communication with the instrument?
Besides, I need to run the content of the file, I should send it OUT @Hp4155; "' XE ' command?
After running, I need save the result in excel file back.
Grateful if someone can help. Thanks in advance for your help.
Kind regards
Yong
The SCPI commands are found in the manual of the instrument.
-
The highest sum of the values in any 3 consecutive dates.
Hello
Given
create table test (colamt COMP, coldate date);
Insert test values (10, sysdate + 1);
Insert test values (20, sysdate-1);
Insert test values (5, sysdate-5);
Insert test values (25, sysdate);
Insert test values (35, sysdate-11);
Insert test values (10, sysdate + 1);
Insert test values (1, sysdate-1);
Insert test values (5, sysdate-2);
Insert test values (20, sysdate-3);
Insert test values (10, sysdate-4);
commit;
SQL > select * from test by coldate;
COLAMT COLDATE
---------- ---------
35 19 MARCH 15
5 25 MARCH 15
10 26 MARCH 15
20 MARCH 27, 15
5 MARCH 28, 15
20 MARCH 29, 15
1 MARCH 29, 15
25 MARCH 30, 15
10 MARCH 31, 15
10 MARCH 31, 15
I need to find the highest sum of colamt for the whole period of 3 days.
In this case, it's 50, for the first 3 lines, 19 to March 26.
(In the real world, I need to know the amount the highest recovery archived how many bytes were generated for consecutive periods of 3 size my FRA v$ archived_log)
I'm just a DBA and scratch my head to the analytical functions available for me. : ()
Hello
To display the best total of 3 rows and the date range when the total highest has been reached:
WITH got_total_colamt AS
(
SELECT coldate
SUM (colamt) OVER (ORDER BY coldate
LINES BETWEEN 2 PRIOR
AND CURRENT ROW
) AS total_colamt
, LAG (coldate, 2)
COURSES (ORDER BY coldate
) AS start_coldate
OF the test
)
got_rnk AS
(
SELECT coldate, total_colamt, start_coldate
, EVALUATE () OVER (ORDER BY total_colamt DESC) AS rnk
OF got_total_colamt
)
SELECT total_colamt
start_coldate
coldate AS end_coldate
OF got_rnk
WHERE rnk = 1
;
Output:
TOTAL_COLAMT START_COLDA END_COLDATE
------------ ----------- -----------
50 19 March 2015 March 26, 2015
If you do not need to display the dates, the above query can be shortened a little.
Etbin showed how to get 3 days in response #1, usinng the analytical SUM function totals. The analytic RANK function, estimated above, which of the totals is higher (or, in the event of a tie, lines 2 or more have the largest number). Because you cannot nest analytic functions, the analytical SUM function should be called in a separate subquery before calling the analytic RANK function. Since the analytical functions are calculated after the WHERE clause has been applied, you cannot use in a WHERE clause. That is why RANK is compuuted in another subquery and its results used in the WHERE clause of the main query.
-
Display of the results of query in Excel on the Web
Hello
I try to display data from a query in excel on the web without creating an existing file. I know I can create a CSV using UTL_FILE and post it but I was hoping there was a way to do it without actually creating the file. I have a procedure that resembles
PROCEDURE displayAsCSV is
cursor STUD_CURS is
Select * from students;
BEGIN
for STUD_REC loop STUD_CURS
HTP. Print (' "' |") STUD_REC. FIRST_NAME. » " , " '|| STUD_REC. LAST_NAME. » " ');
end loop;
END;
Anyone know if it is possible to display these results in excel in the browser by altering the MIME types or something similar?
Thank youCheck Tom owa_sylk utility with the appropriate mime type.
-
Create the collection of query with bind variable
Apex 4.0.2
By Joel the apex_collection.create_collection_from_query_b supports queries containing references to the bind variables (: P1_X) but I don't know how to use this feature, the documentation is not an example, just the API signature for the overloaded version has changed.
If the query contains 2 bind session state variable references (: P1_X and: P1_Y), can someone please show an example of what to spend for the parameters p_names and p_values to the API?
Thank you
procedure create_collection_from_query_b( -- -- Create a named collection from the supplied query using bulk operations. The query will -- be parsed as the application owner. If a collection exists with the same name for the current -- user in the same session for the current Flow ID, an application error will be raised. -- -- This procedure uses bulk dynamic SQL to perform the fetch and insert operations into the named -- collection. Two limitations are imposed by this procedure: -- -- 1) The MD5 checksum for the member data will not be computed -- 2) No column value in query p_query can exceed 2,000 bytes -- -- -- Arguments: -- p_collection_name = Name of collection. Maximum length can be -- 255 bytes. Note that collection_names are case-insensitive, -- as the collection name will be converted to upper case -- p_query = Query to be executed which will populate the members of the -- collection. If p_query is numeric, it is assumed to be -- a DBMS_SQL cursor. -- example(s): -- l_query := 'select make, model, caliber from firearms'; -- apex_collection.create_collection_from_query_b( p_collection_name => 'Firearm', p_query => l_query ); -- p_collection_name in varchar2, p_query in varchar2, p_names in wwv_flow_global.vc_arr2, p_values in wwv_flow_global.vc_arr2, p_max_row_count in number default null) ;
HELEN wrote:
Apex 4.0.2By Joel Re: Collection with variable binding the apex_collection.create_collection_from_query_b supports queries containing references to the bind variables (: P1_X) but I don't know how to use this feature, the documentation is not an example, just the API signature for the overloaded version has changed.
If the query contains 2 bind session state variable references (: P1_X and: P1_Y), can someone please show an example of what to spend for the parameters p_names and p_values to the API?
Not tried, but guess something like
apex_collection.create_collection_from_query_b( p_collection_name => 'foobar' , p_query => 'select f.foo_id, b.bar_id, b.baz from foo f, bar b where f.foo_id = b.foo_id and f.x = to_number(:p1_x) and b.y = :p1_y' , p_names => apex_util.string_to_table('p1_x:p1_y') , p_values => apex_util.string_to_table(v('p1_x') || ':' || v('p1_y')))
-
Combine the size and attributes with application Dates
Hello, I'm trying to combine data from two tables (DIMENSION and ATTRIBUTES) below and load the data corresponding to the OUTPUT.
Can anyone share idea on how I can combine the two? (attribute table has no ID and has only COUNTRY & TYPE to join DIMENSION)
Version Oracle 11g: (11.2.0.2)
CREATE TABLE DIM (ID VARCHAR2 (10), NAME VARCHAR2 (20), TYPE VARCHAR2 (20), COUNTRY VARCHAR2 (2), EFF_DT DATE, DATE END_DT);
CREATE THE TABLE ATTRIBUTES (TYPE VARCHAR2 (20), COUNTRY VARCHAR2 (2), CHAR (1) OF THE CLASS, EFF_DT DATE, DATE END_DT);
INSERT INTO VALUES('1','ABC','A','US',TO_DATE('30-SEP-2013','DD-MON-YYYY'),TO_DATE('31-DEC-2099','DD-MON-YYYY')) DIM;
INSERT INTO VALUES('1','ABC','A','CA',TO_DATE('30-SEP-2013','DD-MON-YYYY'),TO_DATE('31-DEC-2099','DD-MON-YYYY')) DIM;
INSERT IN DIM values('2','XYZ','B','US',TO_DATE('3-FEB-2014','DD-MON-YYYY'),TO_DATE('31-DEC-2099','DD-MON-YYYY'));
INSERT IN the values('A','US','C',TO_DATE('1-JAN-2014','DD-MON-YYYY'),TO_DATE('28-SEP-2014','DD-MON-YYYY ATTRIBUTES '));
INSERT IN the values('A','US','C',TO_DATE('29-SEP-2014','DD-MON-YYYY'),TO_DATE('31-DEC-2099','DD-MON-YYYY ATTRIBUTES '));
INSERT IN the values('A','CA','E',TO_DATE('1-JAN-2014','DD-MON-YYYY'),TO_DATE('28-OCT-2014','DD-MON-YYYY ATTRIBUTES '));
INSERT IN the values('A','CA','E',TO_DATE('29-OCT-2014','DD-MON-YYYY'),TO_DATE('31-DEC-2099','DD-MON-YYYY ATTRIBUTES '));
Thank you.
Maybe let separate everything first delete duplicates
with
Sun did
(select id '1', the name of 'ABC', 'A' type, 'US' country, to_date('30-SEP-2013','DD-MON-YYYY') eff_dt, to_date('31-DEC-2099','DD-MON-YYYY') end_dt Union double all the)
Select '1','ABC','A','CA',to_date('30-SEP-2013','DD-MON-YYYY'),to_date('31-DEC-2099','DD-MON-YYYY') of all the double union
Select '2','XYZ','B','US',to_date('3-FEB-2014','DD-MON-YYYY'),to_date('31-DEC-2099','DD-MON-YYYY') of the double
),
attributes such as
(select 'A' type, countries 'US', 'C' class, to_date('1-JAN-2014','DD-MON-YYYY') eff_dt, to_date('28-SEP-2014','DD-MON-YYYY') end_dt Union double all the)
Select 'A','US','C',to_date('29-SEP-2014','DD-MON-YYYY'),to_date('31-DEC-2099','DD-MON-YYYY') of all the double union
Select 'A','CA','E',to_date('1-JAN-2014','DD-MON-YYYY'),to_date('28-OCT-2014','DD-MON-YYYY') of all the double union
Select 'A','CA','E',to_date('29-OCT-2014','DD-MON-YYYY'),to_date('31-DEC-2099','DD-MON-YYYY') of the double
)
SELECT id, name, type, country, class, eff_dt, end_dt
NVL (lead (eff_dt) over (partition BY id, type, order of eff_dt countries) - 1, end_dt) end_dt_new
from (select distinct id, name, coalesce(type_d,type_a) type, country, case when x = 'a' then class end class, eff_dt,)
-case when end_dt = date ' 2099-12-31' then add_months (trunc (eff_dt, 'yyyy'), 12)-1 else end_dt end end_dt
from (select d.id, d.name, d.typ subscription_type, a.typ type_a, d.country, a.class,)
d.eff_dt d_eff_dt, d.end_dt d_end_dt, a.eff_dt a_eff_dt, a.end_dt a_end_dt
Dim d
full outer join
attributes one
We d.country = a.country
and d.typ = a.typ
)
UNPIVOT ((eff_dt,end_dt) for x in ((d_eff_dt,d_end_dt) as ' of,(a_eff_dt,a_end_dt) like 'a'))
)
order by 1,2,3,4,6
ID NAME TYP COUNTRY CLASS EFF_DT END_DT END_DT_NEW 1 ABC A CA - 30/09/2013 31/12/2013 31/12/2013 1 ABC A CA E 01/01/2014 28/10/2014 28/10/2014 1 ABC A CA E 29/10/2014 31/12/2014 31/12/2014 1 ABC A WE - 30/09/2013 31/12/2013 31/12/2013 1 ABC A WE C 01/01/2014 28/09/2014 28/09/2014 1 ABC A WE C 29/09/2014 31/12/2014 31/12/2014 2 XYZ B WE - 03/02/2014 31/12/2014 31/12/2014 Concerning
Etbin
-
Automate the name of file with form data
We seek to use Adobe sign for our forms of active release in our office - everything is going well so far, I was just wonder if there is a way to change the file name of the completed form using the form data?
For example, once the form has been signed, it is just registered as 'agree active form' - However, before signing, we find the serial number of the asset and the user, it is associated with. Is it possible for the file name automatically and then say "Okay - USER - active form SERIES" or even simply the username if possible?
Thanks in advance.
Hi Matt,
Who is currently not possible, but is a pretty good enhancement request... I hope that it is picked up for implementation very soon.
Thank you
Sameer Puri
-
I try to install but the result is 'failed with the error 8235.
I'm trying to install the USB Option "Globetrotter", but I faced error messages
has failed with error 8235
Itry to fix using uniblue RegistryBooster
but nothing has changedThanks in advance
Hi Ann,
A. you install this application for the first time?
B. you are the administrator of this computer?
Disable user account control and check if you are able to install the software.
http://Windows.Microsoft.com/en-us/Windows-Vista/turn-user-account-control-on-or-off
I hope this helps.
Bindu S - Microsoft Support
[If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message.] [Marking a post as answer, or relatively useful, you help others find the answer more quickly.]
-
help me out with a query with an output that has own text.
help me out with a query with an output that has own text.
For example select name from tbl_name
Ben "is my name"-> should be the output
Hello
3cc59f7b-B8C1-4EFA-8385-e0d8720a689c wrote:
help me out with a query with an output that has own text.
For example select name from tbl_name
Ben "is my name"---> should be the output
Sorry, it is not clear what you want.
If the table contains only "Ben", then you can get the output above using a query like this:
SELECT name. '' my name is' ' AS name_plus
FROM tbl_name;
I hope that answers your question.
If this isn't the case, please post a small example data (CREATE TABLE and only relevant columns, INSERT statements), and the results you want from this data.
Explain, using specific examples, how you get these results from these data.
Always say what version of Oracle you are using (for example, 11.2.0.2.0).
See the FAQ forum: https://forums.oracle.com/message/9362002#9362002
-
Multi table query with key foreign null.
Consider the following tables
create table student ( id number not null, name varchar2(80), primary key(id) ); create table course( id number not null, subject varchar2(120), primary key(id) ); create table class( id number not null, name varchar2(80), day number, course_id number not null, primary key(id), foreign key(course_id) references course(id) ); create table student_course( id number not null, student_id number not null, course_id number not null, class_id number, primary key(id), foreign key(student_id) references student(id), foreign key(course_id) references course(id), foreign key(class_id) references class(id) );
The student may enroll in a course and then a Professor assign to a class, that's why foreign class_id key isn't a constraint not null.
What I want is to write a query so that the student can see all courses, it is registered for the class, that he has been assigned and the day of the class, but the report should include courses where the student is not assigned to a class again.
I wrote the following query.
select course.subject, class.name, class.day from course, class, student_course, student where course.id = student.course_id and class.id = student_course.class_id and student_course.foititis_id = get_foititis_id
However, I only get the lines where the student_course.class_id is not null.
I tried various combinations of coalesce, nvl, decode in both the select statement and where statement, but the results where garbage.
No idea if such a request is possible?
Thanks in advance for any help.
Hello
Thanks for posting the instructions CREATE TABLE. Don't forget to display instructions INSERT for a litle sample data and the results desired from these sample data.
odysam wrote:
... I wrote the following query.
- Select
- race. Subject,
- Class.Name,
- Class.Day
- Of
- Of course
- class,
- student_course,
- Student
- where course.id = student.course_id
- and class.id = student_course.class_id
- and student_course.foititis_id = get_foititis_id
However, I only get the lines where the student_course.class_id is not null.
I tried various combinations of coalesce, nvl, decode in both the select statement and where statement, but the results where garbage.
No idea if such a request is possible? ...
It's logical. The condition on line 11
Class.ID = student_course.class_id
will not be TRUE is student.course.class_id is null.
As Someoneelse said, looks like you need an Outer Join.
Inner joins, as you use above, produce results only when a row in a table has one matching row in another table.
In this case (as far as I can tell without data sample or results), you want to display the rows in a table with their matching rows When THERE is a MATCHING ROWS, but you want to show each row of the first table in any case, if corresponding lines. This is an outer join.
Maybe you are looking for
-
Satellite Pro L450D-12 X - Wireless card in the process of disappearance
Hi guys,. So, I have a laptop Toshiba Satellite Pro (L450D-12 X) in my possession. She has 8 installed inside windows (but came pre-installed with windows 7). The problem I face is that, suddenly, the wireless still endangered, literally as no wirele
-
Portable operation extremely slow even after the system recovery
I have a series of g laptop and on last week, it started running VERY slowly after the start. It came from nowhere, because it allows to work just fine the day before. So yesterday, I restored the factory setting and saved without previous files or d
-
Cannot create a disk image. Error: 0x80780002a and 0x8007045d.
I just got a wd passport ultra. When I try to make a disk image of my hard drive I get the error messages ox80780002a and ox8007045d. What can I do? do I need to format the external drive. Thank you very much for your help Pedro
-
Wallpaper changes automatically after the computer restarts in Windows 7 Home Premium.
Original title: Windows wallpaper change and the creation of new theme when the computer starts. Hello everyone! I had a problem of late with my brand new computer. Whenever I have connection or restart my computer, Windows 7 Home Premium past my wal
-
After I updated my BlackBerry App World to 3.1.4.25 version, the BB App World installed applications list is empty but I can always use them. Tried resets to 3 or more soft, uninstall and re-install BB App World, try using the desktop software and sy