join column Muti question
We recently had a problem where we ran out of process on a single instance of the cluster so I will try to ask the DBA_HIST_ACTIVE_SESS_HISTORY to see which application has most of the sessions connected at the time. After much research, I came with a view online but I can't figure out how to get the join condition to match the session ID and the session_serial # as a whole rather than individually.
So if I run this query:
Select distinct session_id, session_serial #.
of DBA_HIST_ACTIVE_SESS_HISTORY
where sample_time between to_date (28 Aug 14 12:01:00 am "," DD-MON-YY hh: mi: ss pm') and to_date (28 Aug 14 12:32:00 am ',' DD-MON-YY hh: mi: ss pm')
and user_id! = 0
and instance_number = 1;
He returned 1507 lines. That looks all right as a process parameter is set to 2000, when he made a mistake on.
But when I try to get the number of session and group by user_id, charges are way off:
Select e.user_id, count count (user_id)
Join e DBA_HIST_ACTIVE_SESS_HISTORY
(select distinct session_id, session_serial #)
of DBA_HIST_ACTIVE_SESS_HISTORY
where sample_time between to_date (28 Aug 14 12:01:00 am "," DD-MON-YY hh: mi: ss pm') and to_date (28 Aug 14 12:32:00 am ',' DD-MON-YY hh: mi: ss pm')
and user_id! = 0
and instance_number = 1) all_sess
on e.session_id = all_sess.session_id
and e.session_serial #= all_sess.session_serial #.
E.user_id group;
USER_ID COUNTY
---------------------- ----------------------
30 6
494 16921
479 147385
486 779
490 48
I think that if I can get the join to match somehow the session_id and session_serial # together as a pair rather than compare each session_id and session_serial # separately, it might work. Any help would be appreciated.
Hello
Boneist wrote:
I think it is because you are trying to reach the subquery for the entire table, not only the rows in the specified period.
Anyway, your request not could not just be reduced to:
- Select user_id, count (user_id) cnt
- (select user_id, session_id, session_serial #)
- of dba_hist_active_sess_history
- where sample_time between to_date (28 Aug 14 12:01:00 am "," DD-MON-YY hh: mi: ss pm') and to_date (28 Aug 14 12:32:00 am ',' DD-MON-YY hh: mi: ss pm')
- and user_id! = 0
- and instance_number = 1)
- Group of user_id;
?
Or maybe
Select user_id, count (user_id) cnt
(select DISTINCT user_id, session_id, session_serial #)
of dba_hist_active_sess_history
where sample_time between to_date (28 Aug 14 12:01:00 am "," DD-MON-YY hh: mi: ss pm') and to_date (28 Aug 14 12:32:00 am ',' DD-MON-YY hh: mi: ss pm')
and user_id! = 0
and instance_number = 1)
Group of user_id;
Tags: Database
Similar Questions
-
Hello
I'm new to sql, and I am confused on how to write the columns attached on the self-join
for example:
Select emp.last_name, emp.hire_date, mgr.last_name, mgr.hire_date
employees emp
Join
Bishop used
on (emp.employee_id = mgr.manager_id)---(1) - vs-(2) - on (mgr.employee_id = emp.manager_id)
where emp.hire_date < mgr.hire_date
I use the employees on hr diagram table
Thank you!
Hello
It should be the 2nd condition on (mgr.employee_id = emp.manager_id)
Look at it like this
If the table Manager is a different table, then FK will be EMP (MANAGER_ID) to MGR (PK) and the State should follow the same rule if it were a self-join
Concerning
Salim
-
column of question: query customerID sqlplus appear twice
I tried several ways to view a query where indicates the client who made more than 3 rentals from 01 Nov to 31 Dec. However, for some reason any the customerID column appear twice.
* I use 3 tables to get this result:
Select RentalAgreement.membershipcardid as "MCardID."
Customer.CustomerID, Customer.CNAME, Customer.Address,
membershipcard. CustomerID, Invoice.rentc, RentalAgreement.DateAndTimeOfIssue,
Count (RentalAgreement.membershipcardid) as 'NOfRents' RentalAgreement, customer, membershipcard, Bill
where rentalAgreement.membershipcardid = MembershipCard.membershipcardid
and customer.customerid = membershipcard.customerid
"and RentalAgreement.DateAndTimeOfIssue between November 1, 2012' and 31 December 2012"
RentalAgreement.membershipcardid group, MembershipCard.
CustomerID, Customer.CNAME, Customer.Address, Invoice.rentc, Customer.CustomerID, RentalAgreement.DateAndTimeOfIssue;
MCardID CUSTOMERID CNAME ADDRESS CUSTOMERID RENTC DATEANDTI
---------- ---------- ---------- ------ ---------- ---------- ---------
NOfRents
----------
107 N151AS of EDuois 27 27 60 11 November 12
5
108 28 WDuois N151AS 28 60 19 November 12
5
101 N193AS of ALuois 22 22 60 22 November 12
5
MCardID CUSTOMERID CNAME ADDRESS CUSTOMERID RENTC DATEANDTI
---------- ---------- ---------- ------ ---------- ---------- ---------
NOfRents
----------
101 N193AS ALuois 22 22 60 21 of November 12
5
101 N193AS of ALuois 22 22 60 20 November 12
5
101 N193AS of ALuois 22 22 60 24 November 12
5
MCardID CUSTOMERID CNAME ADDRESS CUSTOMERID RENTC DATEANDTI
---------- ---------- ---------- ------ ---------- ---------- ---------
NOfRents
----------
109 N151AS of ADDuis 30 30 60 3 December 12
5
Thanks for your time.
I'm not sure if this request seems to be logical, I would be grateful to any online guide to pl/sqlHello
978308 wrote:
Hi to you for your help, I have another question about pl/sql.When you have a new, separate question, then you should start a new and separate thread. This thread has 4 replies and is marked as 'response '. most of the people who have not participated in this thread (and in this case, it's just you and me) are not going to start watching now. You will get much better response if you start a new thread.
I use oracle 11.2.0. I'm trying to get a report of repairs, so I put a condition if:
3. WHERE RETURNED > 1; - then it will only show the repair costsI got an error after exec report_cursor
SQL > exec report_cursor;
ERROR on line 1:
ORA-06550: line 1, column 7:
PLS-00201: identifier 'REPORT_CURSOR' must be declared.
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored---------PL/PSQL-----------------------------
The line above shows what is simply boredom!
What follows is not just the PL/SQL code. Like many scripts, it's a mixture of SQL * more and PL/SQL (and, unwittingly, pure SQL, too).
'SET SERVEROUTPUT ON' is a SQL * Plus command. Like all SQL * most orders, be completed before the end of the line. In this case, it means "DECLARE CURSOR report_cursor IS" is taken as part of the SET command. When I run it, I get a SQL * Plus error message "SP2-0158: unknown SET"declare"optionSQL >
1 set serveroutput on DECLARE CURSOR report_cursor ISIf the first line is ignored. Since you have not started a block PL/SQL, lines 2 and 3 are considered as being a pure SQL query.
2. SELECT INVID REFERRED, INVOICEDA, REPAIRDETAIL OF THE INVOICE
3. WHERE RETURNED > 1;
4 I_INVID INVOICE. INVID % TYPE;
5 I_REPAIRFEE INVOICE. SENT % TYPE;
6 I_DATE INVOICE. TYPE % INVOICEDA;
7 I_DETAIL INVOICE. TYPE % REPAIRDETAIL;I know not why the lines 4-7 do not cause any errors, because the DECLARE has been ignored.
From line 8, the script is interpreted as PL/SQL: it looks like an anonymous block that does not have the optional DECLARE section.BEGIN 8
9 DBMS_OUTPUT. Put_line ('ID, cost and Scooter fixed Details'); ...Please formatting your code. It will help you as well as others.
All you have to do is to start the DECLARE statement on a charge line:
set serveroutput on DECLARE CURSOR report_cursor IS SELECT INVID , REPAIRFEE , INVOICEDA ...
-
Hi all
I am pretty new to SQL and need assistance from base on accession to these queries.
I have a query:
Select lower (user_name) with users;
and another:
Select lower (us.username), max (TIMESTAMP)
of sys.dba_audit_session us
where lower (us.username) in (select u.user_name from users u)
Lower group (us.username);
Query 1 returns now a lot more results than query 2, but I would like to join the username column of the query 1 and 2, while showing the timestamp for users where it exists.
Any help appreciatedsomething like this (statements are just to simulate your data)
WITH u AS (SELECT 'Bob' username FROM DUAL UNION ALL SELECT 'Fred' FROM DUAL UNION ALL SELECT 'Mary' FROM DUAL UNION ALL SELECT 'Sandy' FROM DUAL), us AS (SELECT 'MARY' username, SYSTIMESTAMP tmestamp FROM DUAL UNION ALL SELECT 'BOb', SYSTIMESTAMP + 1 FROM DUAL UNION ALL SELECT 'BOB', SYSTIMESTAMP + 2 FROM DUAL) SELECT LOWER (u.username), MAX (us.tmestamp) FROM us RIGHT OUTER JOIN u ON (LOWER (u.username) = LOWER (us.username)) GROUP BY LOWER (u.username)
LOWER(U.USERNAME),MAX(US.TMESTAMP) mary,10/12/2010 9:41:56.926106 AM -04:00 bob,10/14/2010 9:41:56.000000 AM -04:00 sandy, fred,
-
Comparing the same outer join column.
Hello
I have the following query.
The problem I have is with the operator1 columns, I've done outer joins on the Users table that contains all users that will be returned in the tables of the peaks and Replens.SELECT Replens.Date1 AS date1, Replens.USER_ID AS Operator1, Picks.USER_ID AS Operator1, Users.Time AS Logged_in_hours, Replens.Quantity AS Pallet_replened, SUM(Replens.Quantity/Users.Time) AS Replen_rate, Picks.Quantity AS Cases_picked, SUM(Picks.Quantity/Users.Time) AS Pick_rate FROM (SELECT libclientreports.getshift(itl.dstamp) Date1, ITL.USER_ID, COUNT(ITL.tag_id) Quantity FROM INVENTORY_TRANSACTION ITL WHERE ITL.code = 'Replenish' AND TO_CHAR(itl.dstamp, 'DD-Mon-YYYY HH24:MI:SS') >= '01-Mar-2010 06:00:00' AND TO_CHAR(itl.dstamp, 'DD-Mon-YYYY HH24:MI:SS') <= '01-Mar-2010 18:00:00' GROUP BY libclientreports.getshift(itl.dstamp), ITL.USER_ID ORDER BY ITL.USER_ID, libclientreports.getshift(itl.dstamp) ) Replens, (SELECT libclientreports.getshift(itl.dstamp) Date1, ITL.USER_ID, SUM(ITL.update_qty) Quantity FROM INVENTORY_TRANSACTION ITL WHERE ITL.to_loc_id = 'CONTAINER' AND TO_CHAR(itl.dstamp, 'DD-Mon-YYYY HH24:MI:SS') >= '01-Mar-2010 06:00:00' AND TO_CHAR(itl.dstamp, 'DD-Mon-YYYY HH24:MI:SS') <= '01-Mar-2010 18:00:00' GROUP BY libclientreports.getshift(itl.dstamp), ITL.USER_ID ORDER BY ITL.USER_ID, libclientreports.getshift(itl.dstamp) ) Picks, (SELECT USER_ID, SUM(LibClientReports.getLoggedInHours (USER_ID, to_date('01-Mar-2010 06:00:00', 'DD-Mon-YYYY HH24:MI:SS'), to_date('01-Mar-2010 18:00:00', 'DD-Mon-YYYY HH24:MI:SS')) )/60 TIME FROM APPLICATION_USER GROUP BY USER_ID ) Users WHERE Users.Time != '0' AND Users.USER_ID = Picks.USER_ID (+) AND Users.USER_ID = Replens.USER_ID (+) GROUP BY Replens.Date1, Replens.USER_ID, Picks.USER_ID, Users.Time, Picks.Quantity, Replens.Quantity ORDER BY Replens.USER_ID, Replens.Date1
However, I want to merge this operator1 into one column. For example, here is the current data, I have for the two columns of the operator 1;
And here is the data I want to see;Operator1 Operator1_1 D9AGY19 D9AGY19 D9BEELB D9BEELB D9FULOPS (null) D9GAWKOWA D9GAWKOWA D9LIDDING D9LIDDING D9NOWAKS D9NOWAKS (null) D9AGY10 (null) D9AGY13 (null) D9AGY15 (null) D9AGY17
Notice the USER_ID to replace the values (null).Operator1 D9AGY19 D9BEELB D9FULOPS D9GAWKOWA D9LIDDING D9NOWAKS D9AGY10 D9AGY13 D9AGY15 D9AGY17
Could someone please explain to me how to make this happen? If you want more information please let me know.
Kind regards
SM.This should do if Op1 and Op1_1 are always the same or one or the other is null. If both are filled and have different values, then it will not work:
nvl(Replens.USER_ID, Picks.User_ID) as AS Operator1
-
Join with count() question, please help!
Hi all
I have this problem (probably simple) that I can't solve... I have 2 tables (tbl_system_engineer and tbl_task_request) here... (only relevant columns are listed below)
tbl_system_engineer
-id NUMBER
-full_name VARCHAR2
tbl_task_request
-tr_number NUMBER
-submitted_on_date DATE (date of work was presented)
-ass_comp_date DATE (date of task must be performed)
-closed_date DATE (date of task was officially closed)
-applicant NUMBER (the id of system engineer, the person who created this task)
The request is meant to summarize how many of the tasks of engineers system is as follows:
-"past completion date" - how many tasks have tbl_task_request.closed_date > tbl_task_request.ass_comp_date SYSDATE or > tbl_task_request.ass_comp_date for the engineer
-' The completion Date approach' - how many tasks have a tbl_task_request.ass_comp_date in this month, but not "past date of completion" of the engineer
-The calendar"- how many tasks have a tbl_task_request.ass_comp_date > the end of the month SYSDATE and year
Result set lines are supposed to look like...
'System engineer full name', after the completion date County, approaching County end date, the time count
Help, please!Hello
Welcome to the forum!
This is an example of a Pivot , where you want to GROUP BY a combination of columns and some columns appear different, not different rows as columns.
The way to do that is to GROUP BY the expressions for which you want to tidy and use CASE expressions for others.
For example:SELECT e.full_name , COUNT ( CASE WHEN r.closed_date > r.xyz_comp_date OR SYSDATE > r.xyz_comp_date THEN 1 END ) AS overdue , COUNT ( CASE WHEN xyz.comp_date < ADD_MONTHS ( TRUNC(SYSDATE, 'MONTH') , 1 ) AND r.closed_date <= r.xyz_comp_date AND SYSDATE <= r.xyz_comp_date THEN 1 END ) AS approaching , COUNT ( CASE WHEN xyz.comp_date >= ADD_MONTHS ( TRUNC(SYSDATE, 'MONTH') , 1 ) THEN 1 END ) AS on_schedule FROM tbl_system_engineer e JOIN tble_task_request r ON r.requestor = e.id GROUP BY e.full_name ;
I do not have the versions of your tables, so I can't really test this. I suspect that some consideration for the NULL values must be added to the conditions of the CASE.
If post you a small example data (CREATE TABLE and only relevant columns, INSERT statements) so people can test their ideas.Sometimes, especially when the columns are mutually exclusive, it is more simple calculate a value in a subquery, saying which column of output each line is associated with. That the calculated value is then used in the CASE expressions very simple in the main query,
Among the features of this awkward site are ithat ir replaces what he thinks are naughty words with s. I suspect that it happened in your message. I guess that all of the columns with * are the same, for which I substituted above.
-
pl sql join and select the join columns. """" t"" c": invalid when debugging
I noticed the error to the cc. Countries that appears because cc is not yet there at compile time (I had that
Search this forum).
is it not a small bit of developer of sql oracle is not a compilation from the outside to the inside/core but
rather in the form of top-down?
I'm fine with my conclusion? If so, how to do otherwise, that is, by specifying that cc.country is
a column of countrycodes attached with table 6?
SELECT DISTINCT 0,
2,
SUBSTR ("metable', 0, 1"): "_ABC";
"ABC_". "metable,"
"ABC". CC. country,
'+'
FROM table 6
LEFT JOIN COUNTRYCODE cc
ON cc. Code = metable
WHERE metable IS NOT NULL
AND <>metable "OK, but this:
SELECT DISTINCT 0, 2, SUBSTR('metable', 0, 1) || '_ABC', 'ABC_' || 'metable', 'ABC ' ||cc.Country , '+' FROM table6 LEFT JOIN COUNTRYCODE cc ON cc.Code = metable WHERE metable IS NOT NULL AND metable ''
Is not a correct SQL statement - there are very obvious errors, so the error you get is maybe not quite relevant.
It works:
SELECT COUNT(cc.Country) FROM table6 LEFT JOIN COUNTRYCODE cc ON cc.Code = metable WHERE metable IS NOT NULL;
So, get a simple query that works first.
-
Reference another table without specifying the referenced column: syntax question
create table test (key primary number col1_pk,)
number col2_fk, col1, col2 number, check constraint test_ck (col1_pk > 0 and col1 > 0),
constraint fk_constraint foreign key (col2_fk) references test);
in this example, for bold hand why isn't there a reference included after column
test references?
is it because Oracle knows he must refer to the pk column?
> what is Oracle knows he must refer to the pk column
Yes.
-
Table invites the column space question OBIEE 11 g
Hello
I have a relationship with the table view and 2 columns in section guests table. When I see the dashboard report 2 invites showing by far. How can I reduce the space between the 2 column guests?
Any help?
Thank you
Prasanna
I found the solution. The law in the 2nd column of filling. It solves the problem.
-
Create table column position questions?
Hi all
I'm just confused the saying that the positioning of column in tables is not serious for the relational database?
Do you agree or disagree.
For me, I do not share. Why?
If it isn't serious.SQL> create table a (a char(10),b number); Table created. SQL> create table b (b number, a char(10)); Table created. SQL> insert into a values ('a',1); 1 row created. SQL> commit; Commit complete. SQL> insert into b select * from a; insert into b select * from a * ERROR at line 1: ORA-01722: invalid number
Thank youKinsaKaUy? wrote:
OK maybe I interpreted in the wrong sense :))Can you help with this problem.
I have an EMP table with more than 10,000 rows and 500 columns.
The developer was asked to edit a column ATTRIBUTE1 of VARCHAR2 (10) number;
It is said that the column must be empty to change the data type, so I created a backup:
CREATE TABLE EMP_BAK AS SELECT * FROM EMP;
TRUNCATE TABLE EMP;
ALTER TABLE EMP MODIFY (ATTRIBUTE1 NUMBER);How can I insert it using the... INSERT INTO EMP SELECT * FROM EMP_BAK;
To aggraviate the situation the designer wants to move the position of the column in the 100th place in 10th place.
Assuming that you can't reason with out them, how to make this task easier?Thank you
Rather than create a new table and your complications mentioned above, you can follow the Sub method I guess.
ALTER TABLE DUMMY_ATTRIBUTE1 ADD EMP NUMBER;
UPDATE EMP
ATTRIBUTE1 SET = DUMMY_ATTRIBUTE1
WHERE 1 = 1;COMMIT;
UPDATE EMP
ATTRIBUTE1 SET = NULL
WHERE 1 = 1;COMMIT;
ALTER TABLE EMP CHANGE ATTRIBUTE1 NUMBER;
UPDATE EMP
SET DUMMY_ATTRIBUTE1 = ATTRIBUTE1
WHERE 1 = 1;COMMIT;
ALTER TABLE DROP COLUMN DUMMY_ATTRIBUTE1 EMP;
-
H1. Oracle 10
The SQL below gives me the following error...
* S0022 (904) [Microsoft] [ODBC for Oracle driver] [Oracle] ORA-00904: 'APPROVED_TRANS': identifier invalid (0.06 seconds) *.
If I delete the alias from the statement of the AMOUNT and replace "Approved_Trans" by "CHG_APRV_DISPUTE_AMT" in the WHERE clause, it works...
Can someone explain what Oracle thinks that it doesn't?
Thank you
Tom
Select A.DISPUTE_ID,
D.DISPUTE_ID,
Approved,
Sum (CHG_APRV_DISPUTE_AMT) Approved_Trans
APPROVED_DISPUTE_TRANS a
Join them)
Select DISPUTE_ID,
(LBI_AR_ITD_APRV_AMT + MBI_AR_ITD_APRV_AMT +)
ABI_AR_ITD_APRV_AMT + LPD_AR_ITD_APRV_AMT + APD_AR_ITD_APRV_AMT) approved
the DISPUTE settlement
) D
On A.DISPUTE_ID = D.DISPUTE_ID
Where Approved_Trans =! Approved
A.DISPUTE_ID group,
D.DISPUTE_ID,
Approved;Select expression list alias cannot be referenced in the WHERE clause. In addition, sum is the aggregation function and aggregation takes place AFTERWARDS where the provision is applied. You must use the HAVING clause:
select A.DISPUTE_ID, D.DISPUTE_ID, Approved, sum(CHG_APRV_DISPUTE_AMT) Approved_Trans from APPROVED_DISPUTE_TRANS A join ( Select DISPUTE_ID, LBI_AR_ITD_APRV_AMT + MBI_AR_ITD_APRV_AMT + ABI_AR_ITD_APRV_AMT + LPD_AR_ITD_APRV_AMT + APD_AR_ITD_APRV_AMT Approved from DISPUTE ) D on A.DISPUTE_ID = D.DISPUTE_ID group by A.DISPUTE_ID, D.DISPUTE_ID, Approved having sum(CHG_APRV_DISPUTE_AMT) =! Approved /
SY.
-
Stacked column linking question
APEX 4.0
Anychart 5
Setting SQL shaped for a stacked column or a bar chart is pretty simple.
SELECT
link,
label,
Value1,
[value2],
[value3,]...
Of...
This will allow your entire column/bar become a link.
Is there a way to allow each value in a column/bar to post a link to another location?
For example -.
In view of the data set:
Label: balls football: baseballs: Tennisballs
East: 100:30:20
West: 40:50:60
North: 50:50:50
A stacked bar will create three bars, each with three regions. If a link was specified according to the format described above, each region in the East bar link to the same place. Ditto for the bars of the West and the North. However, I have a 9 different links for this data set. Is this possible?
AustinHi Austin,.
Yes, it is possible to define a different link to each item in your series on the chart. It goes down just in the way you write the query in the chart series. You can use a CASE statement to define a different link according to the value of the LABEL of your query, or you could make a UNION of several statements, with a different link defined in each select statement. Using your example data set, I've implemented the following example on my sample application - http://apex.oracle.com/pls/apex/f?p=36648:59 - and I have stressed the three queries used to generate the graph. The query of the 1 series uses a CASE statement, and other queries of two series are a UNION of several select statements. Is looking to achieve?
I hope this helps.
Kind regards
Hilary -
Newbie said: problem joining forms, degraded question
I'm new to Illustrator and trying to make a logo. I created the logo using lines and circles. I was able to reach all segments of different letters without much problem (by grouping then join), but try to do my 'k' is not going so well. When I try to join the forms, a form of line under the 'k', and I can't understand why. Here is a picture of comparison (the other letters are in contact with on each side of the 'k' intentionally):
Once I got this figured out, my goal is to use a gradient on the whole logo. The tutorial that I use is said to use Path > Outline Stroke. I can get the gradients work very well for each individual letter, but how do I get the gradient to work (smoothly) through the whole logo?
Thank you!
Because in the end the logo is going to be a single shape with a gradient, don't worry connecting the railways of the individual letters. Your 'before' example is fine. Once all the individual paths are created, you can go to "object/path access/plan Coup." If none of the original paths remain, you should choose and delete them, leaving only the forms described. Then click on the first icon in the Pathfinder (unit) palette. Since they are overlapping, they will form a single form which can be assigned to a gradient through it all.
-
DataGrid width column resize question
Is it possible to implement a DataGrid with absolute width columns AND columns of relative width?
I have a datagrid that resizes with the browser window and widths of columns can be resized by the user, but the itemRenderer buttons still have to do the same width(resizable='false').
I tried different combinations to attack this problem manually resize the columns in the resize event DataGrid, binding the function column widths, but nothing seems to work well.
any tips/suggestions/ideas out there?
I can post some samples of failed attempts if requested.OK, try this. It's 'force-TI-in-la submission' programming and isn't usually my style, but good, the other stuff apparently do not work.
TS
-
SELECT - INNER JOIN / multi-table question
I have a few pages where I can:
register a new user
Open as this user which brings me to a home page. from there I can go to 'my page' users where I can see their fine of the initial registry data. I have a link here where I can go to add to their additional profile data that I didn't want to bore in the original registration.
It perfect all worked with the original test data, I've created in the database.
After that I added the additional tables needed to feed the profile further I ran into trouble. I could create a new user, see in the database is fine. I see them on the homepage with their information through the Recordset. However when I'd go to their 'my page' none of their information would be fill and go to extra profile update page haven't fired a no records found message.
Finally, I realized that the reason for this is because the SELECT statement is waiting for the other tables to fill. I filled in the missing data and the query to work. So... Now that I know what is causing the problem I need help to find a solution. Also, I'm still new to find work around me even after 4 days of research and reading messages.
So when a new user registers, I need to be able to display data from the initial registration on the "my page" and get their user_id for profile tables add somehow so that when I go to the add profile page, there is a link.
I don't know if I need to do something in the database or in my query. It there any sense to anyone? I need to create the user_id on other tables during registration of origin occurs? If so, how would I go all this?
Thanks in advance. My INNER JOIN is attached in case it helps.
I have a few pages where I can:
register a new user
Open as this user which brings me to a home page. from there I can go to 'my page' users where I can see their fine of the initial registry data. I have a link here where I can go to add to their additional profile data that I didn't want to bore in the original registration.It perfect all worked with the original test data, I've created in the database.
After that I added the additional tables needed to feed the profile further I ran into trouble. I could create a new user, see in the database is fine. I see them on the homepage with their information through the Recordset. However when I'd go to their 'my page' none of their information would be fill and go to extra profile update page haven't fired a no records found message.
Finally, I realized that the reason for this is because the SELECT statement is waiting for the other tables to fill. I filled in the missing data and the query to work. So... Now that I know what is causing the problem I need help to find a solution. Also, I'm still new to find work around me even after 4 days of research and reading messages.
So when a new user registers, I need to be able to display data from the initial registration on the "my page" and get their user_id for profile tables add somehow so that when I go to the add profile page, there is a link.
I don't know if I need to do something in the database or in my query. It there any sense to anyone? I need to create the user_id on other tables during registration of origin occurs? If so, how would I go all this?
Thanks in advance. My INNER JOIN is attached in case it helps.
Maybe you are looking for
-
Is it possible to set up an Apple TV Remote to control an iPad Pro?
Hello I'm looking to put up an Apple TV remote be able click through a presentation of the iPad... Is there a way to define who, perhaps even to the control through an album in the Photos app? Or would I need to get the remote bluetooth?
-
Installation of Service Pack 1 for Vista
I received the error message during the installation of SP1. Error code 0 x 80073712
-
Without going into the details of why I need to do this, I'm putting the firewall of Windows XP in one allow all the configuration of ports and only refuse some ports I have in a list. I train this script via the command-line batch with the netsh fir
-
Get 8004FF83 error message during the installation of Windows updates.
I checked why an update failed. He tried 3 times between 2/5 and 4/5 with this error message on the screen for updates. AST is a security update what to do.
-
Adding an SSD to a new XPS 8900 - the games begin
I recently bought a new 8900 XPS of Costco. I bought an Intel SSD 240 GB 535 and wanted to use it as a boot drive and I was going to format and use the 1 TB came with the PC as a storage device. Initially, I cloned the drive OEM to the new SSD. This