I need a detailed explanation about this query!
Hey Guys,
I'm doing a course on distributed databases at uni. I have got this query but I am not 100% sure what is being executed first, the queries between brackets or outter ones.
What is the difference between semi-join and join queries?
what's meant by "WHERE EXISTS" clause?
what's the union do with the results?
SELECT C.COUNTRYNAME, C.CODE FROM "USER_HP_FULL"."COUNTRY" C
WHERE EXISTS(
SELECT 1 FROM (SELECT * FROM "USER1_HP_FULL"."ATHLETE1_REPLICA1"
UNION SELECT * FROM "USER2_HP_FULL"."ATHLETE2_REPLICA1"
UNION SELECT * FROM "USER3_HP_FULL"."ATHLETE3_REPLICA1") A
WHERE A.CCODE = C.CODE)
ORDER BY C.COUNTRYNAME;
Thank you!
>
I'm doing a course on distributed databases at uni. I have got this query but I am not 100% sure what is being executed first, the queries between brackets or outter ones.
>
Then you should
1. open a sql*plus command window
2. log on as a user with the correct privileges
3. set serveroutput on
4. set autotrace traceonly
5. execute the query
Examine the execution plan - it will show you what is being executed first. If you have questions post the plan using \ tags.
{quote}
What is the difference between semi-join and join queries?
{quote}
The documentation is your friend.
http://docs.oracle.com/cd/B28359_01/server.111/b28286/queries006.htm
{quote}
what's meant by "WHERE EXISTS" clause?
{quote}
http://docs.oracle.com/cd/B28359_01/server.111/b28286/conditions012.htm#sthref2960
{quote}
EXISTS Condition An EXISTS condition tests for existence of rows in a subquery.
{quote}
{quote}
what's the union do with the results?
{quote}
Eliminates duplicates in multiple query results
http://docs.oracle.com/cd/B28359_01/server.111/b28286/queries004.htm
See 'The UNION [ALL], INTERSECT, MINUS Operators' in the SQL Language doc
{quote}
UNION Example The following statement combines the results of two queries with the UNION operator, which eliminates duplicate selected rows.
{quote}
Similar Messages
-
Any Explanations y this query is not ordering ?
SELECT dept_id, salary, job_id
FROM employees
ORDER BY
( SELECT dept_id
FROM departments
WHERE last_name='Abel');
Assumptions:
1. The inner subquery gives a value of 10 only.
2. There is no 10th column in the Table Employees.
3. There is only 1 employee in the department 10.
Output it gives :
It gives all that is there in the employees table(projected cols), However the first record is always from dept_id= 10, then it just displays without ordering.yes you are partially correct. The subquery will return only 10 and not 1 or 5 or any other value.
I have an explanation to this query bt I'm not sure about it.
Oracle checks for semantics and syntax at compile time. So if everything is correct then only it submits the query for execution. Now when a subquery executes only then oracle knows there is no 10th col in the database so it is a runtime error. -
How to enable all details on about this page link
Hi All experts,
Could any one help me out how to enable all details (like which view object, Application module and Controller associate with fields.) on the about this page link.
My problem is I am not able to see any details on about this page link wail clicking on this link due to they created a custom responsibility and they mapped the ceded menus and functions.
Thanks in advance
Best regards,
KsvThanks for your reply,
But we are not able to see any links/tabs/details also.
just we are able to see the page path only.
regards,
prasad -
Hi, my hinge cover is loose, do I need to do anything about this?
Hi, my hinge cover is loose, do I need to do anything about this?
I'd recommend taking it in. I had the same thing happen to mine when I had the screen replaced, and it wasn't that noticeable at first but it kept getting worse the more I used and travelled with my computer.
So I'd take it in before it got too much worse--I would guess that it might be covered even without warranty, or that it'd be a cheap repair if not. Good luck! -
Dv7-1451nr - I need more specific info about this note, cant find anywhere!
Whats the memory speed, whats the motherboard supported bus? Whats the motherboard?
Why there isnt many info about this note around there? Is it new? Terrible? Better options?This system should be using using M780G Chipset and supports dual channel DDR2 800MHz...
If you want advance info on the system spec...try cpuz... http://www.cpuid.com/softwares/cpu-z.html
Although I am an HP employee, I am speaking for myself and not for HP.
Make it easier for other people to find solutions, by marking my answer with 'Accept as Solution', if it solves your problem.
Click on the BLUE KUDOS button on the left to say "Thanks" -
Need advice on tuning about a query?
Hi experts,
I want to tune this query
Before effect
SELECT NVL (MAX (a.actual_to_date + 1),
b.date_of_joining
) AS start_date
FROM HR_JUDGE_MONTH_SALARY a, HR_JUDGE_MASTER b
WHERE a.judge_code(+) = b.judge_code AND b.judge_code = :b1
GROUP BY b.judge_code, b.date_of_joining
call count cpu elapsed disk query current rows
Parse 0 0.00 0.00 0 0 0 0
Execute 261 0.00 0.00 0 0 0 0
Fetch 261 2.01 133.50 28045 194499 0 261
total 522 2.01 133.51 28045 194499 0 261There are 2 tables involved in this query.
1. tables are not have proper statistics
2. indexes are not analyzed,
so i did the following changes.
select count(*) from HR_JUDGE_MASTER;
select * from user_tables where table_name = 'HR_JUDGE_MASTER';
eXEC DBMS_STATS.gather_table_stats('MOJ_PRD','HR_JUDGE_MASTER');
EXEC DBMS_STATS.GATHER_INDEX_STATS('MOJ_PRD','SYS_C004215')
select count(*) from HR_JUDGE_MONTH_SALARY;
select * from user_tables where table_name = 'HR_JUDGE_MONTH_SALARY';
eXEC DBMS_STATS.gather_table_stats('MOJ_PRD','HR_JUDGE_MONTH_SALARY');
EXEC DBMS_STATS.GATHER_INDEX_STATS('MOJ_PRD','SYS_C004268')after effect
SELECT NVL (MAX (a.actual_to_date + 1),
b.date_of_joining
) AS start_date
FROM HR_JUDGE_MONTH_SALARY a, HR_JUDGE_MASTER b
WHERE a.judge_code(+) = b.judge_code AND b.judge_code = :b1
GROUP BY b.judge_code, b.date_of_joining
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 261 0.01 0.00 0 0 0 0
Fetch 261 15.76 153.03 797959 1151271 0 261
total 523 15.78 153.03 797959 1151271 0 261
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 63 (MOJ_PRD) (recursive depth: 1)
error during execute of EXPLAIN PLAN statement
ORA-00942: table or view does not existPlease guide me in this regards.
Thanks in advance
kanishi have the whole trace file even though i am not able to identify the "wait".
The whole file i am not able to attach here, it said the beyond the maximum limit.
anyway i am attaching the partial one
TKPROF: Release 9.2.0.1.0 - Production on Tue Oct 9 13:06:20 2012
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Trace file: c:\orcl_ora_4040_kamaltrc.trc
Sort options: default
count = number of times OCI procedure was executed
cpu = cpu time in seconds executing
elapsed = elapsed time in seconds executing
disk = number of physical reads of buffers from disk
query = number of buffers gotten for consistent read
current = number of buffers gotten in current mode (usually for update)
rows = number of rows processed by the fetch or execute call
DECLARE
P_MONTH VARCHAR2(32767);
P_YEAR VARCHAR2(32767);
BEGIN
P_MONTH := '11';
P_YEAR := '2012';
MOJ_PRD.CALC_PAYROLL ( P_MONTH, P_YEAR );
COMMIT;
END;
call count cpu elapsed disk query current rows
Parse 1 0.01 0.00 0 0 0 0
Execute 2 0.76 1.05 0 0 0 1
Fetch 0 0.00 0.00 0 0 0 0
total 3 0.78 1.06 0 0 0 1
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 63 (MOJ_PRD)
DELETE FROM HR_JUDGE_PRE_MONTH_SALARY_TEMP
WHERE 1 = 1
call count cpu elapsed disk query current rows
Parse 0 0.00 0.00 0 0 0 0
Execute 1 0.03 0.09 27 72 6438 1231
Fetch 0 0.00 0.00 0 0 0 0
total 1 0.03 0.09 27 72 6438 1231
Misses in library cache during parse: 0
Optimizer goal: CHOOSE
Parsing user id: 63 (MOJ_PRD) (recursive depth: 1)
error during execute of EXPLAIN PLAN statement
ORA-00942: table or view does not exist
parse error offset: 80
DELETE FROM HR_JUDGE_ALW_DED_STD_TEMP
WHERE 1 = 1
call count cpu elapsed disk query current rows
Parse 0 0.00 0.00 0 0 0 0
Execute 1 0.00 0.02 20 37 969 861
Fetch 0 0.00 0.00 0 0 0 0
total 1 0.00 0.02 20 37 969 861
Misses in library cache during parse: 0
Optimizer goal: CHOOSE
Parsing user id: 63 (MOJ_PRD) (recursive depth: 1)
error during execute of EXPLAIN PLAN statement
ORA-00942: table or view does not exist
parse error offset: 80
SELECT judge_code, date_of_joining, date_of_relieving,CONTRACT_TYPE_CODE
FROM HR_JUDGE_MASTER
WHERE enabled_flag = 'Y'
-- AND judge_code = '114899'
AND workflow_completion_status = 'Y'
AND include_pay = 'Y'
AND judge_status NOT IN ('000003', '000004', '000007')
-- AND date_of_relieving IS NULL
AND ( (date_of_relieving IS NULL)
OR (TO_DATE (TO_CHAR (date_of_relieving, 'MM/YYYY'), 'MM/YYYY') >=
TO_DATE (TO_CHAR (SYSDATE, 'MM/YYYY'), 'MM/YYYY')
AND judge_code IN (SELECT judge_code
FROM JUDGE_TEMP)
call count cpu elapsed disk query current rows
Parse 0 0.00 0.00 0 0 0 0
Execute 2 0.00 0.00 0 0 0 0
Fetch 524 0.04 0.98 288 568 0 522
total 526 0.04 0.98 288 568 0 522
Misses in library cache during parse: 0
Optimizer goal: CHOOSE
Parsing user id: 63 (MOJ_PRD) (recursive depth: 1)
error during execute of EXPLAIN PLAN statement
ORA-00942: table or view does not exist
parse error offset: 154
INSERT INTO HR_JUDGE_ALW_DED_STD_TEMP
SELECT *
FROM HR_JUDGE_ALW_DED
WHERE percent_value_tag = 'S' AND judge_code = :b1
call count cpu elapsed disk query current rows
Parse 0 0.00 0.00 0 0 0 0
Execute 261 0.07 3.02 464 2926 269 861
Fetch 0 0.00 0.00 0 0 0 0
total 261 0.07 3.02 464 2926 269 861
Misses in library cache during parse: 0
Optimizer goal: CHOOSE
Parsing user id: 63 (MOJ_PRD) (recursive depth: 1)
error during execute of EXPLAIN PLAN statement
ORA-00942: table or view does not exist
parse error offset: 140
SELECT NVL (MAX (a.actual_to_date + 1),
b.date_of_joining
) AS start_date
FROM HR_JUDGE_MONTH_SALARY a, HR_JUDGE_MASTER b
WHERE a.judge_code(+) = b.judge_code AND b.judge_code = :b1
GROUP BY b.judge_code, b.date_of_joining
call count cpu elapsed disk query current rows
Parse 0 0.00 0.00 0 0 0 0
Execute 261 0.00 0.00 0 0 0 0
Fetch 261 2.01 133.50 28045 194499 0 261
total 522 2.01 133.51 28045 194499 0 261
Misses in library cache during parse: 0
Optimizer goal: CHOOSE
Parsing user id: 63 (MOJ_PRD) (recursive depth: 1)
error during execute of EXPLAIN PLAN statement
ORA-00942: table or view does not exist
parse error offset: 223
SELECT MIN (a.applied_to_date) AS d1
FROM HR_JUDGE_LEAVE_ATTEN a
WHERE a.applied_to_date >= :b3
AND a.applied_from_date <=
((TO_DATE (:b2, 'dd/MM/rrrr')) + 20
AND a.judge_code = :b1
--AND a.leave_code = 'ORDINARY'
AND a.salary_advance_req = 'Y'
AND a.enabled_flag = 'Y'
AND a.workflow_completion_status = 'Y'
call count cpu elapsed disk query current rows
Parse 0 0.00 0.00 0 0 0 0
Execute 261 0.03 0.00 0 0 0 0
Fetch 261 0.00 0.74 103 3547 0 261
total 522 0.03 0.75 103 3547 0 261
Misses in library cache during parse: 0
Optimizer goal: CHOOSE
Parsing user id: 63 (MOJ_PRD) (recursive depth: 1)
error during execute of EXPLAIN PLAN statement
ORA-00942: table or view does not exist
parse error offset: 117
SELECT COUNT(*) FROM HR_JUDGE_LEAVE_ATTEN WHERE judge_code = :b2
AND TO_NUMBER(TO_CHAR(applied_from_Date, 'mm')) <= TO_NUMBER(:b1)
AND salary_advance_req='N'
AND NVL(IS_RESUMPTION_REQ,'Invalid')='Y' -- 11-Oct-2011 modified to handle cancelled ordinary leave where advaces taked
AND flag!='T'
AND Req_Ext_No IS NULL
AND resumed_date IS NULL
call count cpu elapsed disk query current rows
Parse 0 0.00 0.00 0 0 0 0
Execute 261 0.00 0.00 0 0 0 0
Fetch 261 0.03 0.00 0 3547 0 261
total 522 0.03 0.01 0 3547 0 261
Misses in library cache during parse: 0
Optimizer goal: CHOOSE
Parsing user id: 63 (MOJ_PRD) (recursive depth: 1)
error during execute of EXPLAIN PLAN statement
ORA-00942: table or view does not exist
parse error offset: 90
SELECT COUNT(*) FROM HR_JUDGE_LEAVE_ATTEN WHERE judge_code = :b2
AND TO_NUMBER(TO_CHAR(applied_to_Date, 'mm')) <= TO_NUMBER(:b1)
AND salary_advance_req='Y'
AND NVL(IS_RESUMPTION_REQ,'Invalid')='Y' -- 11-Oct-2011 modified to handle cancelled ordinary leave where advaces taked
AND flag!='T'
AND Req_Ext_No IS NULL
AND resumed_date IS NULL
call count cpu elapsed disk query current rows
Parse 0 0.00 0.00 0 0 0 0
Execute 195 0.00 0.00 0 0 0 0
Fetch 195 0.00 0.00 0 2475 0 195
total 390 0.00 0.00 0 2475 0 195
Misses in library cache during parse: 0
Optimizer goal: CHOOSE
Parsing user id: 63 (MOJ_PRD) (recursive depth: 1)
error during execute of EXPLAIN PLAN statement
ORA-00942: table or view does not exist
parse error offset: 90
SELECT a.alw_ded_code, a.alw_ded_tag, a.percent_value_tag,
CASE
WHEN a.percent_value_tag = 'V'
THEN a.alw_ded_amount
-- OLD COD REMOVED BY KAMAL
-- WHEN a.percent_value_tag = 'S'
-- THEN a.inst_amount
-- NEW CODE ADDED BY KAMAL
WHEN a.percent_value_tag = 'S' AND a.inst_amount > a.total_amount
THEN
a.total_amount
WHEN a.percent_value_tag = 'S' AND a.inst_amount < a.total_amount
THEN
a.inst_amount
-- END OF NEW CODE
WHEN a.percent_value_tag = '%'
THEN (SELECT aa.alw_ded_amount
FROM HR_JUDGE_ALW_DED aa
WHERE aa.alw_ded_code =
a.parent_alw_ded_code
AND aa.judge_code = :b3)
* (alw_ded_percent / 100)
END AS amt,
a.effective_from, a.effective_till, a.is_pay_monthly,
a.is_pay_print,a.total_amount
FROM HR_JUDGE_ALW_DED a
WHERE a.judge_code = :b3
AND a.effective_from <= :b2
AND a.effective_till >= :b1
AND a.enabled_flag = 'Y'
call count cpu elapsed disk query current rows
Parse 0 0.00 0.00 0 0 0 0
Execute 184 0.00 0.00 0 0 0 0
Fetch 2590 0.06 0.02 0 7542 0 2406
total 2774 0.06 0.02 0 7542 0 2406
Misses in library cache during parse: 0
Optimizer goal: CHOOSE
Parsing user id: 63 (MOJ_PRD) (recursive depth: 1)
error during execute of EXPLAIN PLAN statement
ORA-00942: table or view does not exist
parse error offset: 1315
INSERT INTO HR_JUDGE_PRE_MONTH_SALARY_TEMP
(judge_code, alw_ded_tag, alw_ded_code,
alw_ded_amount, from_period,
to_period, is_pay_monthly, is_include_payslip,
ccid,
language_code, org_unit_code, enabled_flag,
workflow_completion_status, created_by,
created_date, actual_from_date, actual_to_date
VALUES (:b6, :b7, :b5,
0, TO_DATE (:b4, 'dd/MM/rrrr'),
TO_DATE (:b3, 'dd/MM/rrrr'), 'Y', 'Y',
:b6
|| :b5
|| :b4
|| :b3,
'AR', 'MOJ', 'Y',
'Y', 'admin',
SYSDATE, :b2, :b1
call count cpu elapsed disk query current rows
Parse 0 0.00 0.00 0 0 0 0
Execute 1203 0.06 1.31 213 22 6252 1203
Fetch 0 0.00 0.00 0 0 0 0
total 1203 0.06 1.31 213 22 6252 1203
Misses in library cache during parse: 0
Optimizer goal: CHOOSE
Parsing user id: 63 (MOJ_PRD) (recursive depth: 1)
error during execute of EXPLAIN PLAN statement
ORA-00942: table or view does not exist -
How would i go about this query
I need to sum 3 of the same volume fields based on 3 diff where in clauses. in one single query. So basicaly these three queries below in one query. Its been a long time since ive had to do queries, can any also link me to a good resource for understanding nested selects, unions etc..
SELECT A.DAYTIME,
SUM(A.GRS_VOL_GAS_SE3M3) AS SWEET_FUEL_CONS
FROM
RV_STRM_DAY_STREAM_MEAS_GAS A
WHERE
A.CODE IN ('M_2370', 'M_8251','M_GYCOL')
AND A.DAYTIME >= TO_DATE('01-Jan-2006')
AND A.DAYTIME <= TO_DATE('31-Jan-2006')
GROUP BY A.DAYTIME
ORDER BY A.DAYTIME
SELECT A.DAYTIME,
SUM(A.GRS_VOL_GAS_SE3M3) AS SOUR_FUEL_CONS
FROM
RV_STRM_DAY_STREAM_MEAS_GAS A
WHERE
A.CODE IN ('M_1370A', M_1370B','M_1370C','M_1370D', M_1370E','M_1370F')
AND A.DAYTIME >= TO_DATE('01-Jan-2006')
AND A.DAYTIME <= TO_DATE('31-Jan-2006')
GROUP BY A.DAYTIME
ORDER BY A.DAYTIME
SELECT A.DAYTIME,
SUM(A.GRS_VOL_GAS_SE3M3) AS Flare
FROM
RV_STRM_DAY_STREAM_MEAS_GAS A
WHERE
A.CODE IN ('M_8300')
AND A.DAYTIME >= TO_DATE('01-Jan-2006')
AND A.DAYTIME <= TO_DATE('31-Jan-2006')
GROUP BY A.DAYTIME
ORDER BY A.DAYTIMEnot sure if this is what you are looking for:
Select a1.daytime,
sum(a1.sweet_fuel_cons) sweet_fuel_cons,
sum(a1.sour_fuel_cons) sour_fuel_cons,
sum(a1.flare) flare
From (SELECT A.DAYTIME,
SUM(A.GRS_VOL_GAS_SE3M3) AS SWEET_FUEL_CONS,
0 SOUR_FUEL_CONS,
0 Flare
FROM RV_STRM_DAY_STREAM_MEAS_GAS A
WHERE A.CODE IN ('M_2370', 'M_8251','M_GYCOL')
AND A.DAYTIME >= TO_DATE('01-Jan-2006','dd-mon-yyyy')
AND A.DAYTIME <= TO_DATE('31-Jan-2006','dd-mon-yyyy')
GROUP BY A.DAYTIME
UNION
SELECT A.DAYTIME,
0 SWEET_FUEL_CONS,
SUM(A.GRS_VOL_GAS_SE3M3) AS SOUR_FUEL_CONS,
0 Flare
FROM RV_STRM_DAY_STREAM_MEAS_GAS A
WHERE A.CODE IN ('M_1370A', M_1370B','M_1370C','M_1370D', M_1370E','M_1370F')
AND A.DAYTIME >= TO_DATE('01-Jan-2006','dd-mon-yyyy')
AND A.DAYTIME <= TO_DATE('31-Jan-2006','dd-mon-yyyy')
GROUP BY A.DAYTIME
UNION
SELECT A.DAYTIME,
0 SWEET_FUEL_CONS,
0 SOUR_FUEL_CONS,
SUM(A.GRS_VOL_GAS_SE3M3) AS Flare
FROM RV_STRM_DAY_STREAM_MEAS_GAS A
WHERE A.CODE IN ('M_8300')
AND A.DAYTIME >= TO_DATE('01-Jan-2006','dd-mon-yyyy')
AND A.DAYTIME <= TO_DATE('31-Jan-2006','dd-mon-yyyy')
GROUP BY A.DAYTIME) a1
Group by a1.daytime; -
How do I find out my keychain password? Need more info fast about this
My computer started to get really slow, so I looked what I could do to make it faster again. After searching I found that the safari content was high and that I should delete it to make it less laggy and slow. Long story short I ended up deleting my saved passwords on safari...Looking into more info, I found out that I needed to get to Keychain Access. I got to Keychain access, found all the passwords.
My question..
•How do I get them out of Keychain?
•If I end up needing my password for Keychain, how do I find that out? I have the like start up CD, but I dont remember ever making a password.
•And if I do retreive my Keychain Password some how, will that delete everything stored in Keychain? I would have just tried it, but its a lot of passwords I CAN NOT lose...
Please help :/
Thanks!Never mind the screenshot.
Please read this whole message before doing anything.
This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you boot, and again when you log in.
Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Ask for further instructions.
Safe mode is much slower to boot and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal boot may also be somewhat slow.
The login screen appears even if you usually login automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
Test while in safe mode. Same problem?
After testing, reboot as usual (not in safe mode) and verify that you still have the problem. Post the results of the test. -
I need a simple explanation about cert authentication sample, please
Hi
Thank you for reading my post
I have tried to understand the cert sample which could be find in
JavaES5\identity\samples\authentication\api\CertI looked at the readme file and it mentiond two files name cert7.db and key3.db
But it does not talk about how we can use those kind of files from within a Java application, I mean how a client application can use these files to perform authentication with the access manager?
For example, a client must have the certification and then it can be able to authenticate againts the access manager.
What is/are the relation between cert7.db and key3. db with trust.jks and keys.jks ?
can we use those file here in this sample? if yes, how?
ThanksI consider Time Capsule slow, mainly because it depends upon a wireless network for backing up. I tried it, but went back to the plug and play FW800 wired backup. Since this particular forum is for the MacBook Pro hardware, I'd suggest the following two forums to search for your answer (or ask questions):
Time Machine
Time Capsule
Since you want easy, the external hard drive is about as easy as it gets. Buy. Unpack. Plug into your Mac. Format (if you don't buy a Mac formatted one, which is unnecessary). Go to System Preferences>Time Machine. Choose the disk as the time machine. Turn on. -
Physics for game developers book. I need to know something about this book.
1. On Amazon, the discription says it is for people with college leval math. I am only fourteen, so that won't work for me.
2. The examples are in C++
I don't care if the book is in Java, but I need a good book on game DESIGN. Is this a good book:
Game Design: The Art & Business of Creating Games
by Bob Bates. I really need to know. Thanks. Are there any other good game DESIGN books? Preferably one that is either JAVA or not made for a lanquage. Thanks.
VirumBasic physics equations etc. isn't that hard - GCSE
maths and science is enough to get a basic physics
demo up and running. If you've not covered these areas
yet you'll want to look into trigonometry (sin, cos
etc.) and the equations of motion (dealing with speed,
acceleration etc.).This is not true.
Figuring out the forces will give you some set of equations that relate accelerations, velocity and positions with some properties of the physical system you have. This is a system of second order differential equations, more or less complicated to solve, if you want to get position and velocity over time from it.
To solve this symbolically or to be able to write an algorithm that solves this numerically is something you learn at University, except for some very easy cases.
The book explains some of this.
Look at it but don't despair.
It is good enough if you get a physics engine in your hands, thus some ready coded routines that do the job of solving for you.
I believe that book has some.
Regards,
Marc -
Needed some detailed explanation for following points -- In UNICODE
Hi all
The following rules apply for converting a structure into a single field and vice versa:
1. If a structure is purely character-type, it is treated like a C field during conversion.
2. If the single field is of type C, but only part of the structure is character-type, conversion is only possible if the structure begins with a character-type structure and if this structure is at least as long as the single field. Conversion now takes place between the first character-type group of the structure and the single field. If the structure is the target field, the character type sections of the remainder are filled with blanks, and all other components are filled with the type-adequate initial value.
3. Conversion is not permitted if the structure is not purely character-type and if the single field is not of type C.
hi anybody can provide an explanation with examples
Thanks in advance.The data layout of structures is relevant to UP checks with regard to the reliability of assignments and comparisons, for example. This data layout is represented in the Unicode fragment view. The fragment view breaks down the structure into alignment gaps, in byte and character-type areas, and all other types such as P, I, F, strings, references or internal tables.
Juxtaposed character-type components of a structure except strings are internally combined into a group if no alignment gaps exist between these components. All possible alignment requirements for characters are considered. Juxtaposed byte type components are grouped together in the same way.
Example
BEGIN OF struc,
a(2) TYPE C,
b(4) TYPE N,
c TYPE D,
d TYPE T,
e TYPE F,
f(2) TYPE X,
g(4) TYPE X,
h(8) TYPE C,
i(8) TYPE C,
END OF struc.
Fragment 1: a, b, c, d
Fragment 2: Alignment gap between d and e
Fragment 3: e
Fragment 4: f, g
Fragment 5: Alignment gap between g and h
Fragment 6: h, i -
Please give me detailed explanation for this error
dear all,
i have created a procedue and used UTL_TCP utility.
while executing this procedure always im getting this error.
im very new to these utilities. pls help me in advance.
error
ORA-29261: bad argument
ORA-06512: at "SYS.UTL_TCP", line 28
ORA-06512: at "SYS.UTL_TCP", line 257
ORA-06512: at "CCCL_29OCT07.O_DBEVENT_TRIGGER", line 231
ORA-06512: at line 12
thanks in advanceCan we see what you actually did/tried to do?
Also there are at least a couple of links for this error on Google, for example...
Getting bad argumnet error when using UTL_MAIL.SEND_ATTACH_VARCHAR2
http://asktom.oracle.com/pls/asktomf?p=100:11:0::::P11_QUESTION_ID:255615160805 -
Need help in Fine Tuning this query
Hello Gurus,
The below sql's are from Application engine . It runs more than 5 hours to complete . I have fewer knowledge on sql tuning and request to repharse the sql's to perform and complete the program within One hour.
PS_GE_GAPS_INV is going thru Range Scan and TAO table is going for Full Table Scan.
I have indexes on PS_GE_GAPS_INV which is the main table. Iam joining TAO(Temporary table) and Main Table with common keys defined thru Application designer.
Appreciate all your help.
First Sql :
UPDATE PS_GE_GAPS_INV
SET LAST_DTTM_UPDATE = TO_DATE(SYSDATE,'DD-MM-YY-HH24.MI.SS."000000"')
WHERE
(BUSINESS_UNIT,RECONCILE_DT,GE_INVENTORY_SOURC,TAG_NUMBER,ASSET_ID,SERIAL_ID_TR,S
ERIAL_ID,GE_CUSTODIAN_PHY,CUSTODIAN,DEPTID_P,DEPTID,CHARTFIELD2,CHARTFIELD3,GE_GA
P_RULE,SEQUENCENO) IN (
SELECT DISTINCT B.BUSINESS_UNIT
,B.RECONCILE_DT
,B.GE_INVENTORY_SOURC
,B.TAG_NUMBER
,B.ASSET_ID
,B.SERIAL_ID_TR
,B.SERIAL_ID
,B.GE_CUSTODIAN_PHY
,B.CUSTODIAN
,B.DEPTID_P
,B.DEPTID
,B.CHARTFIELD2
,B.CHARTFIELD3
,B.GE_GAP_RULE
,B.SEQUENCENO
FROM PS_GE_GAPS_TAO A
, PS_GE_GAPS_INV B
WHERE A.BUSINESS_UNIT = B.BUSINESS_UNIT
AND (A.RECONCILE_DT = B.RECONCILE_DT
OR (A.RECONCILE_DT IS NULL
AND B.RECONCILE_DT IS NULL))
AND A.GE_GAP_RULE = B.GE_GAP_RULE
AND A.SEQUENCENO = B.SEQUENCENO
AND A.GE_INVENTORY_SOURC = B.GE_INVENTORY_SOURC
AND A.TAG_NUMBER = B.TAG_NUMBER
AND A.ASSET_ID = B.ASSET_ID
AND A.SERIAL_ID_TR = B.SERIAL_ID_TR
AND A.SERIAL_ID = B.SERIAL_ID
AND A.GE_CUSTODIAN_PHY = B.GE_CUSTODIAN_PHY
AND A.CUSTODIAN = B.CUSTODIAN
AND A.DEPTID_P = B.DEPTID_P
AND A.DEPTID = B.DEPTID
AND A.CHARTFIELD2 = B.CHARTFIELD2
AND A.CHARTFIELD3 = B.CHARTFIELD3
AND A.BUSINESS_UNIT = %Bind(BUSINESS_UNIT)
AND A.RECONCILE_DT = %Bind(RECONCILE_DT)
AND A.PROCESS_INSTANCE =%ProcessInstance)
Second Sql :
INSERT INTO PS_GE_GAPS_INV (BUSINESS_UNIT
, RECONCILE_DT
, GE_GAP_RULE
, SEQUENCENO
, GE_INVENTORY_SOURC
, TAG_NUMBER
, ASSET_ID
, SERIAL_ID_TR
, SERIAL_ID
, GE_CUSTODIAN_PHY
, CUSTODIAN
, VENDOR_ID
, DEPTID_P
, DEPTID
, CHARTFIELD2
, CHARTFIELD3
, GE_GAP_STATUS
, CERTMESSAGE
, LAST_DTTM_UPDATE
, COMMENT1
, ASSET_STATUS
, DESCR1
, DESCR
, NAME1_AC
, NAME1
, CATEGORY_DESCR
, CATEGORY
, OPERATING_UNIT_TO
, OPERATING_UNIT
, PROJECT_ID_P
, PROJECT_ID
, PRODUCT_TO
, PRODUCT
, INV_ITEM_ID
, ITEM_FIELD_C30_B
, ITEM_FIELD_C30_C)
SELECT DISTINCT B.BUSINESS_UNIT
, B.RECONCILE_DT
, B.GE_GAP_RULE
, B.SEQUENCENO
, B.GE_INVENTORY_SOURC
, B.TAG_NUMBER
, B.ASSET_ID
, B.SERIAL_ID_TR
, B.SERIAL_ID
, B.GE_CUSTODIAN_PHY
, B.CUSTODIAN
, B.VENDOR_ID
, B.DEPTID_P
, B.DEPTID
, B.CHARTFIELD2
, B.CHARTFIELD3
, B.GE_GAP_STATUS
, B.CERTMESSAGE
, B.LAST_DTTM_UPDATE
, B.COMMENT1
, B.ASSET_STATUS
, B.DESCR1
, B.DESCR
, B.NAME1_AC
, B.NAME1
, B.CATEGORY_DESCR
, B.CATEGORY
, B.OPERATING_UNIT_TO
, B.OPERATING_UNIT
, B.PROJECT_ID_P
, B.PROJECT_ID
, B.PRODUCT_TO
, B.PRODUCT
, B.INV_ITEM_ID
, B.ITEM_FIELD_C30_B
, B.ITEM_FIELD_C30_C
FROM PS_GE_GAPS_TAO B
WHERE B.BUSINESS_UNIT = %Bind(BUSINESS_UNIT)
AND B.RECONCILE_DT =%Bind(RECONCILE_DT)
AND NOT EXISTS (
SELECT 'X'
FROM PS_GE_GAPS_INV A
WHERE B.BUSINESS_UNIT = A.BUSINESS_UNIT
AND (B.RECONCILE_DT = A.RECONCILE_DT
OR (B.RECONCILE_DT IS NULL
AND A.RECONCILE_DT IS NULL))
AND B.GE_GAP_RULE = A.GE_GAP_RULE
AND B.SEQUENCENO = A.SEQUENCENO
AND B.GE_INVENTORY_SOURC = A.GE_INVENTORY_SOURC
AND B.TAG_NUMBER = A.TAG_NUMBER
AND B.ASSET_ID = A.ASSET_ID
AND B.SERIAL_ID_TR = A.SERIAL_ID_TR
AND B.SERIAL_ID = A.SERIAL_ID
AND B.GE_CUSTODIAN_PHY = A.GE_CUSTODIAN_PHY
AND B.CUSTODIAN = A.CUSTODIAN
AND B.DEPTID_P = A.DEPTID_P
AND B.DEPTID = A.DEPTID
AND B.CHARTFIELD2 = A.CHARTFIELD2
AND B.CHARTFIELD3 = A.CHARTFIELD3)
Third Sql :
INSERT INTO PS_GE_GAPST_TAO (BUSINESS_UNIT
, RECONCILE_DT
, GE_GAP_RULE
, SEQUENCENO
, GE_INVENTORY_SOURC
, TAG_NUMBER
, ASSET_ID
, SERIAL_ID_TR
, GE_CUSTODIAN_PHY
, SERIAL_ID
, CUSTODIAN
, DEPTID_P
, DEPTID
, CHARTFIELD2
, CHARTFIELD3
, PROCESS_INSTANCE
, GE_GAP_STATUS
, CERTMESSAGE
, LAST_DTTM_UPDATE
, COMMENT1
, ASSET_STATUS
, DESCR1
, DESCR
, VENDOR_ID
, NAME1_AC
, NAME1
, CATEGORY_DESCR
, CATEGORY
, OPERATING_UNIT_TO
, OPERATING_UNIT
, PROJECT_ID_P
, PROJECT_ID
, PRODUCT_TO
, PRODUCT
, INV_ITEM_ID
, ITEM_FIELD_C30_B
, ITEM_FIELD_C30_C)
SELECT DISTINCT BUSINESS_UNIT
, RECONCILE_DT
, GE_GAP_RULE
, SEQUENCENO
, GE_INVENTORY_SOURC
, TAG_NUMBER
, ASSET_ID
, SERIAL_ID_TR
, GE_CUSTODIAN_PHY
, SERIAL_ID
, CUSTODIAN
, DEPTID_P
, DEPTID
, CHARTFIELD2
, CHARTFIELD3
, %ProcessInstance
, GE_GAP_STATUS
, CERTMESSAGE
, LAST_DTTM_UPDATE
, COMMENT1
, ASSET_STATUS
, DESCR1
, DESCR
, VENDOR_ID
, NAME1_AC
, NAME1
, CATEGORY_DESCR
, CATEGORY
, OPERATING_UNIT_TO
, OPERATING_UNIT
, PROJECT_ID_P
, PROJECT_ID
, PRODUCT_TO
, PRODUCT
, INV_ITEM_ID
, ITEM_FIELD_C30_B
, ITEM_FIELD_C30_C
FROM ps_ge_gaps_inv B
WHERE b.business_unit = %Bind(BUSINESS_UNIT)
AND b.reconcile_dt =%Bind(RECONCILE_DT)
AND NOT EXISTS (
SELECT 'X'
FROM ps_ge_gaps_tao a
WHERE A.BUSINESS_UNIT = B.BUSINESS_UNIT
AND (A.RECONCILE_DT = B.RECONCILE_DT
OR (A.RECONCILE_DT IS NULL
AND B.RECONCILE_DT IS NULL))
AND A.GE_GAP_RULE = B.GE_GAP_RULE
AND A.SEQUENCENO = B.SEQUENCENO
AND A.GE_INVENTORY_SOURC = B.GE_INVENTORY_SOURC
AND A.TAG_NUMBER = B.TAG_NUMBER
AND A.ASSET_ID = B.ASSET_ID
AND A.SERIAL_ID_TR = B.SERIAL_ID_TR
AND A.SERIAL_ID = B.SERIAL_ID
AND A.GE_CUSTODIAN_PHY = B.GE_CUSTODIAN_PHY
AND A.CUSTODIAN = B.CUSTODIAN
AND A.DEPTID_P = B.DEPTID_P
AND A.DEPTID = B.DEPTID
AND A.CHARTFIELD2 = B.CHARTFIELD2
AND A.CHARTFIELD3 = B.CHARTFIELD3 )
Best Regards,
BalaAre the statistics on your temp table up to date?. Either add an %UpdateStats SQL step after loading the temp table, or check the following notes if your database is Oracle and is a relatively current version:
pscbo_stats - Improving Statistics in Oracle RDBMS for PeopleSoft Enterprise [ID 1322888.1]
E-ORA PeopleSoft Enterprise Performance on Oracle 11g Database [ID 1460735.1]
Regards,
Bob -
I want to know detail explanation about ImageCapture method
I'm trying to use ImageCapture (Document method) to make clipped artboard images as jpeg.
The method requires to set an argument Rect to define a clipping boundary
But I can not find how to set Rect argument in the reference.
By the way,
I can write whole artwork image data to a specified file.
But It looks the file isn't saved as jpeg.
How do I change file type.Hi artchrome!!
Setting visibleBounds as clippingbounds works correctly!!
It looks an exported file is PNG though file name is Jpg.
But it is not a problem at all.
Thank you very much!! -
How do you edit the 'About this mac' window?
Hi,
I need to edit the about this mac window - pictured here to remind you of what exactly it is ( http://www.pluggedinmac.com/Picture%201.jpg )- in order to further my understanding of how this aspect of Macintosh works.
I will be extremely greatful of all replies
Thanks
JamesYou'll need to be a bit more specific about what you mean by "edit".
If you want to edit the actual .nib file (the archive which describes the window), it's at
/System/Library/CoreServices/loginwindow.app/Contents/Resources/English.lproj/Ab outThisMac.nib
Nib files can normally be edited by using the Interface Builder application that's part of the Xcode developer tools.
However, since you're on an Intel-based Mac, you won't be able to edit the nib unless you first find a version from a Power PC Mac. The reason for this is that .nib files aren't actually a file, but a package that includes different parts inside the primary folder. For example, if you Control-click on the AboutThisMac.nib mentioned above, and choose Show Package Contents, a new Finder window will open which shows a single item "keyedobjects.nib". That is an actual file which holds the archived user interface objects (using key/value coding/archiving, hence the "keyed" in the name). To be able to open and edit a .nib file in Interface Builder, however, you need two additional files inside named "classes.nib" and "info.nib". These provide Interface Builder with the information necessary to properly open the nib. By removing those two files from the nib, a developer can essentially make the nib "read-only", meaning it will work fine when the application it's a part of needs to use it, but an end-user (or their competition) cannot open the nib file in Interface Builder to see how the objects were constructed. Most nibs that are part of an OS X install on PowerPC-based Macs include the necessary files and can be opened in Interface Builder. Most of the nibs included with Intel-based Macs, on the other hand, do not include those files and can't be opened in Interface Builder without first copying the "classes.nib" and "info.nib" files from a PowerPC-based Mac's nib to the Intel version of the nib.
Hope this helps....
Dual 2.7GHz PowerPC G5 w/ 2.5 GB RAM; 17" MacBook Pro w/ 2 GB RAM - Mac OS X (10.4.7)
Maybe you are looking for
-
How to use BAPI_ACC_DOCUMENT_POST
Hello ALL. I need to update the field AUFNR in database table BSEG, I'm using the BAPI BAPI_ACC_DOCUMENT_POST, the function module execute with out errors, but do not change the field AUFNR. Could any one help me? Thanks in advance
-
Success with iTunes but a problem with a temp file
Further to my recent post, I have now had some form of success with opening iTunes but I can only do this if my external hard drive (which has the remnants of some file left). I have tried to copy and paste the files relating to iTunes but for some r
-
Hi, can anyone advise is there a another way to reverse a rebate credit memo other than cancellation? Reason is bcos user found this mistake after monthend and their practise is not to perform cancellation after monthend. Is there a correction docu
-
How to get Podcast on a nano 4 gig
I have a nano second generation 4gigabyte. I wanna upload some IllWillpress podcast on to it, Though podcast isn't even on my Itunes manager list on my Ipod. i tell it to Sync but nothing goes through but new music I have imported
-
Resolution to trace CCM4.1 administrator account changes activity
Dear sir, We wish to find a way for tracing the administrator traces (timestamp and etc.) For example:- Administrator add/delete/modify a phone setting on 1april2009. How I can see what have the administrator changed something on CCM4.1 webpage? I ha