table game
How can I search for part of a word in a table
for example: yello
yellow, blue, Brown, black.
Hi LVdummies,
Have you tried InStr()?
Brad Turpin
Tiara Product Support Engineer
National Instruments
Tags: NI Software
Similar Questions
-
To develop a common relational prior measure between teams in the video game database
Hi all
We use the Oracle 10 g 2 enterprise database.
I have a table with 3 columns Gameid, Crewid, Release_Yr
For each game, there are several lines for the crew has worked on this game.
Other games have a different number of the crew have been working on this game.
I want to develop a common relational prior measure between teams in the video game database.
The idea is to understand the degree of familiarity people have, in a team, based on their prior membership of the team.
For example game VG1 4 crew members are associated (this will be captured in 4 lines in the table)
Team A, B, C, D.
So, for the crew a VG1 game, each prior association (compare all games including the year of release is equal or before the game current year of release)
will be checked. If the crew has worked three times with the B team on different games (VG2, VG3, VG4) and once with D (VG2)
them, the measure will be of 3 + 1 = 4
I'll try to explain this graphically (with crew in columns, well in the table, they are in lines)
To calculate the measure for VG1
GAMEID Crewid Release_Yr rank (the rank is just for the sake of explanation)
-------------------------- ------------------------
VG1 A B C D 1 2013
VG2 A B C D 2012 2 X
VG3 A B C Z 3 2012
VG4 A B Y Z 4 2012
VG5 HAS C Y Z 5 2012
(1) measurement for VG1 to crew A with respect to B
GAMEID Crewid line
----------- ------------ --------
VG2 A AND B 2
VG3 A AND B 3
VG4 A AND B 4
-----------------------------
Total 3
Measure for VG1 for crew has compared to C
GAMEID Crewid line
----------- ------------- --------
VG2 HAS C 2
VG3 HAS 3 C
VG5 A 5 C
-----------------------------
Total 3
Measure for VG1 for crew has against D
GAMEID Crewid line
---------------------------------
VG2 A D 2
-----------------------------
Total 1
So the final measure for vg1 to crew A = 3 + 3 + 1 = 7
================================================
(2) calculate the same measure for the B = crew
Measure for VG1 for crew B in respect A + measure for VG1 for crew B over C + measure for VG1 for crew B with respect to D
3 + 2 + 1 = 6
(3) calculates the measure for crew C = 3 + 2 + 1 = 6
(4) calculates the measure for crew D = 1 + 1 + 1 = 3
/*
-script
create the table game
(
GAMEID varchar2 (30),
crewid varchar2 (30),
release_yr number (4.0)
);
Insert in game values ('VG1', 'A', 2013);
Insert in game values ('VG1', 'B', 2013);
Insert in game values ('VG1', 'C', 2013);
insert into set values ('VG1"'d', 2013");
Insert in game values ('VG2', 'A', 2012);
Insert in game values ('VG2', 'B', 2012);
Insert in game values ('VG2', 'C', 2012);
insert into set values ('VG2"'d' 2012 ');
Insert in game values ('VG2', 'X', 2012);
Insert in game values ('VG3', 'A', 2012);
Insert in game values ('VG3', 'B', 2012);
Insert in game values ('VG3', 'C', 2012);
Insert in game values ('VG3', 'Z', 2012);
insert into game values ('VG4', 'A', 2012);
insert into game values ('VG4', 'B', 2012);
insert into game values ('VG4', 'Y', 2012);
insert into game values ('VG4', 'Z', 2012);
insert into game values ('VG5', 'A', 2012);
insert into game values ('VG5', 'Y', 2012);
insert into game values ('VG5', 'C', 2012);
insert into game values ('VG5', 'Z', 2012);
*/
-output
GAMEID CREWID RELEASE_YR measurement
VG1 A 2013 7
VG1 B 2013 6
VG1 C 2013 6
VG1 D 2013 3
VG2 A 2012 and so on
VG2 B 2012
VG2 C 2012
VG2 D 2012
I can implement the solution using sql and plsql and completely free to use any approach.
My actual table has around games 6,82,803 video
Total of records in the table is of about 28,03,800
Crew of average per game is 4 and some games bigger than the 900 crew.
Thank you very much.
Sheetal Gupta
Try this and let me know if something goes wrong. I wrote the request so that, for example for example, crewid X in gameid VG2 doesn't have a corresponding value. His count is therefore 1. If this is not the case, let me know on what needs to be done. If you want it to be 1, then remove the DECODE function and just use COUNT (*).
SELECT T1. GAMEID,
T1. CREWID,
T1. RELEASE_YR,
DECODE (COUNT (*), 1.0, COUNT (*)) CNT
GAME T1 LEFT OUTER JOIN
GAME T2
ON T1. GAMEID! = T2. GAMEID
AND T1. CREWID! = T2. CREWID
AND T1. RELEASE_YR > = T2. RELEASE_YR
AND EXISTS (SELECT CREWID FROM GAME WHERE GAMEID = T1. GAMEID AND CREWID = T2. CREWID)
AND EXISTS (SELECT 1 GAME WHERE CREWID = T1. CREWID AND GAMEID = T2. GAMEID)
GROUP T1. GAMEID,
T1. CREWID,
T1. RELEASE_YR
ORDER BY GAMEID, CREWID;
OUTPUT:
VG1 A 7, 2013
VG1 2013 6 B
VG1 2013 6 C
VG1 2013 3 D
4 2012 VG2
VG2 2012 3 B
VG2 2012 3 C
VG2 D 2012 0
VG2 X 2012 0
VG3 A 6 2012
VG3 2012 4 B
VG3 2012 4 C
VG3 2012 4 Z
VG4 A 5 2012
VG4 2012 3 B
VG4 2012 2 Y
VG4 2012 4 Z
VG5 A 5 2012
VG5 2012 3 C
VG5 2012 2 Y
VG5 2012 4 Z
Post edited by: Parth272025
-
Hi guys,.
I made a game as the same site: http://www.Netent.com/games/table-games/Texas-Holdem-Pro-series/
Anyone know how to prevent the user opened and play the game on multiple windows browser both?
I used the command of flash to embed flash into a page aspx and connection to sql server
Someone help me, please.
p/s: Sorry, my English is not good
You can use localconnection.
-
raise errors ora-01426 truncating the table
Hello
We have a process that runs in the following process for some tabls game
1 disable constraints
2. the truncating tables
3. activation of the constraints
but after treatment for 5 tables, truncating up error
BEGIN < process name >; END;
*
ERROR on line 1:
ORA-01426: digital overflow
ORA-06512: at the "< procedurename >", line 33
ORA-06512: at line 1
This line 33 point to run immeidate ' truncate table < table name >
Can I know what is the reason for throwing "digital overflow" error truncating the table...
Thanks in advanceuser9080289 wrote:
Thank you.Is my verision of oracle 11g
Then, you could have the described bug. Follow the instructions how to bypass (flush with low-value stats monitoring) or apply the #8226471 patch.
Nicolas.
-
Update the table, exclude NULL lines...
Hi all
I have 2 tables.
TABLE_A
SRNO VARCHAR2 (10)
FLAG VARCHAR2 (20)
TABLE_B
SNO VARCHAR2 (10)
VARCHAR2 (20) IND
I wan to update the INDICATOR in the IND of TABLE_B TABLE_A where SRNO both table games.
Here I wrote
UPDATE TABLE_A HAS
SET A.FLAG = (SELECT B.IND FROM TABLE_B B WHERE B.SNO = A.SRNO)
Here, the problem is, I don't want to update SRNO in TABLE_A where IND is set to null to TABLE_B. (or exclude the ONS of innerquery where IND is null)
How can I change this query to do this?
I tried to use
UPDATE TABLE_A HAS
SET A.FLAG = (SELECT B.IND FROM TABLE_B B WHERE B.SNO = A.SRNO AND B.IND IS NOT NULL)
When I run this query, yet it updates all lines and updates to null FLAG where IND is set to null in the table B for SRNO even.Hello
Try
UPDATE TABLE_A A SET A.FLAG = (SELECT B.IND FROM TABLE_B B WHERE B.SNO = A.SRNO AND B.IND IS NOT NULL) WHERE EXISTS (SELECT B.IND FROM TABLE_B B WHERE B.SNO = A.SRNO AND B.IND IS NOT NULL)
* 009 *.
-
Impose a factor of scale between the model and FPGA
Hi all
I have a VS project configuration that unfolds on a real-time system. The project has an FPGA and a model. Some of the output of the cards of the OD of the FPGA model. In addition, some of the AI of the FPGA cards at the entrances to the model. Here's my problem. The AI FPGA gives me a measure of voltage, but the model takes only a pressure (bar) as input. This means that I need to convert my blood pressure using a table or a formula. How to make that happen?
Also, I want to use the same lvbitx FPGA and the same model of dll on various physical parameters. The only difference between these physical configurations is the forumla/table (for example, a different pressure sensor is used). Is a convinient way to say VS use different table games?
Hi oeua.uoeuau,
If you have a formula to convert the voltage in pressure, you can use a calculated string to implement. You just point to the computed in your Channel FPGA output and the inport of your model to the computed string. If you need a table of choice, you can create a model of LabVIEW that takes blood and uses a lookup table to get the pressure reading and the outport of LabVIEW model port in the inport else your model.
To switch between the different scallings, you can simply use a procedure to set a variable to be an entry or another.
See you soon,.
< brian="" a="" |="" national="" instruments="" |="" applications="" engineering="">
-
port-securty - EEM tcl access violation
Hi all!
I have problem with regexp expression inside my script.
I need to have two variables, one for PortID i.e. Ge, Fe, Ethernet and the other the MAC address which is a cause of breach of policy, where events happen I see that my regexp is not workin. Please help me or point in the right direction)
=
21:45:23.516 Jul 13: [fh_event_reqinfo_cmd]
* 21:45:23.516 Jul 13: [fh_process_event_reqinfo]
* 21:45:23.516 Jul 13: [fh_event_reqinfo_cmd] event_trigger_num 1 19 21 event_pub_sec 1468446323 event_pub_msec 160 event_pub_time 1468446323.160 job_id event_id event_type {41} event_type_string {syslog} event_severity {gravity-major} msg_count {1} {critical} priority msg {}
{* 21:45:23.161 Jul 13: % PORT_SECURITY-2-PSECURE_VIOLATION: security breach took place, caused by MAC address aabb.cc00.0100 on port Ethernet0/0.} timestamp sequence {} {* 21:45:23.161 Jul 13} mnemonic installation {PORT_SECURITY} {PSECURE_VIOLATION}
* 21:45:23.517 Jul 13: [fh_cli_debug_cmd]
* 21:45:23.517 Jul 13: % HA_EM-6-LOG: test.tcl: DEBUG (cli_lib): IN: switch > activate
* 21:45:23.517 Jul 13: [fh_tty_write_cmd]
* 21:45:23.517 Jul 13: [fh_tty_write_cmd] cmd = enable, cmdsize = 6
* 21:45:23.517 Jul 13: [fh_sys_reqinfo_routername_cmd]
* 21:45:23.535 Jul 13: [fh_tty_read_cmd]
* 21:45:23.535 Jul 13: [fh_tty_read_cmd] read not ready
* 21:45:23.638 Jul 13: [fh_tty_read_cmd]
* 21:45:23.638 Jul 13: [fh_tty_read_cmd] size = 9
* 21:45:23.638 Jul 13: [fh_tty_prompt_cmd]
* 21:45:23.738 Jul 13: [fh_cli_debug_cmd]
* 21:45:23.738 Jul 13: % HA_EM-6-LOG: test.tcl: DEBUG (cli_lib): OUT: switch #.
* 21:45:23.738 Jul 13: [fh_cli_debug_cmd]
* 21:45:23.738 Jul 13: % HA_EM-6-LOG: test.tcl: DEBUG (cli_lib): IN: terminal #configure switch
* 21:45:23.738 Jul 13: [fh_tty_write_cmd]
* 21:45:23.738 Jul 13: [fh_tty_write_cmd] cmd = configure terminal, cmdsize = 18
* 21:45:23.739 Jul 13: [fh_sys_reqinfo_routername_cmd]
* 21:45:23.750 Jul 13: [fh_tty_read_cmd]
* 21:45:23.750 Jul 13: [fh_tty_read_cmd] read not ready
* 21:45:23.860 Jul 13: [fh_tty_read_cmd]
* 21:45:23.860 Jul 13: [fh_tty_read_cmd] size = 80
* 21:45:23.860 Jul 13: [fh_tty_prompt_cmd]
* 21:45:23.967 Jul 13: [fh_cli_debug_cmd]
* 21:45:23.967 Jul 13: % HA_EM-6-LOG: test.tcl: DEBUG (cli_lib): OUT: enter configuration commands, one per line. End with CNTL/Z.
* 21:45:23.967 Jul 13:
Switch #% HA_EM-6-LOG: test.tcl: DEBUG (cli_lib): OUT: Switch (config) #.
* 21:45:23.967 Jul 13: [fh_cli_debug_cmd]
* 21:45:23.967 Jul 13: % HA_EM-6-LOG: test.tcl: DEBUG (cli_lib): IN: Switch (config) #file quiet quickly
* 21:45:23.967 Jul 13: [fh_tty_write_cmd]
* 21:45:23.967 Jul 13: [fh_tty_write_cmd] cmd = quiet prompt file, cmdsize = 17
* 21:45:23.972 Jul 13: [fh_sys_reqinfo_routername_cmd]
* 21:45:23.992 Jul 13: [fh_tty_read_cmd]
* 21:45:23.992 Jul 13: [fh_tty_read_cmd] read not ready
* 21:45:24.100 Jul 13: [fh_tty_read_cmd]
* 21:45:24.100 Jul 13: [fh_tty_read_cmd] size = 17
* 21:45:24.100 Jul 13: [fh_tty_prompt_cmd]
* 21:45:24.171 Jul 13: % LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet0/0, changed State to down
* 21:45:24.200 Jul 13: [fh_cli_debug_cmd]
* 21:45:24.200 Jul 13: % HA_EM-6-LOG: test.tcl: DEBUG (cli_lib): OUT: Switch (config) #.
* 21:45:24.200 Jul 13: [fh_cli_debug_cmd]
* 21:45:24.200 Jul 13: % HA_EM-6-LOG: test.tcl: DEBUG (cli_lib): IN: Switch (config) #interface IDE oucederomsurlesecondport Ethernet0/0.
* 21:45:24.200 Jul 13: [fh_tty_write_cmd]
* 21:45:24.200 Jul 13: [fh_tty_write_cmd] cmd = interface Ethernet0/0 IDE oucederomsurlesecondport., cmdsize = 30
* 21:45:24.200 Jul 13: [fh_sys_reqinfo_routername_cmd]
* 21:45:24.218 Jul 13: [fh_tty_read_cmd]
* 21:45:24.218 Jul 13: [fh_tty_read_cmd] read not ready
* 21:45:24.323 Jul 13: [fh_tty_read_cmd]
* 21:45:24.323 Jul 13: [fh_tty_read_cmd] read not ready
* 21:45:24.426 Jul 13: [fh_tty_read_cmd]
* 21:45:24.426 Jul 13: size [fh_tty_read_cmd] ===
: model cisco::eem:event_register_syslog ' % PORT_SECURITY-2-PSECURE_VIOLATION: "maxrun 600
import namespace: cisco::eem: *.
import namespace: cisco::lib: *.Table game rn [sys_reqinfo_routername]
the value of hostname $rn (routername)
Set the SERVER "192.168.116.1".
set the 'nuk.
set PASSWORD "malina".If {{[result catch {cli_open}]}
Output 1
} else {}Table game arr_einfo [event_reqinfo]
Set _regexp_result [regexp {caused by MAC address (. +) on the port (. +).} $arr_einfo (msg) MAC PORT]Try this one.
Table game arr_einfo [event_reqinfo]
Set the msg '$arr_einfo (msg).
If [regexp {caused by MAC address ([0 - 9 - f\ a.] +) on the port ([a-zA-Z0-9 /-.] +)} $msg game PORT MAC] {}
} else {}
action_syslog msg 'Unable to parse syslog message.
}
-
How to use the Script TCL EEM in router?
Dear all,
I have a TCl Script (it's 1 to test and understand).
********************************************** TEST.tcl *******************************************
: model cisco::eem:event_register_syslog "Interface FastEthernet0/0, changed State to.
import namespace: cisco::eem: *.
import namespace: cisco::lib: *.Table game arr_einfo [event_reqinfo]
action_script enable status
If {[catch result {cli_exec $cli_fd (fd) 'enable'}]} {error $result $errorInfo}
If {[catch result {cli_exec $cli_fd (fd) 'int fa0/1'}]} {error $result $errorInfo}
If {[catch result {cli_exec $cli_fd (fd) 'shut'}]} {error $result $errorInfo}
action_syslog msg "New Port is now"
If {[catch result {cli_close $cli_fd (fd) $cli_fd (tty_id)}]} {error $result $errorInfo}
********************************************** TEST.tcl *******************************************
Can someone tell me how to use this script in router that will be used every time my interface fa0/0 he'll fa0/1 in stop mode?
Can you give me the steps to follow in the router?
Wharton are the sine qua non for the use of this?
Concerning
Concerning
Virtually any command, Yes. You can't do "?" as you can from an interactive session, but you can run all the commands EXEC and config otherwise.
-
Startup-Configuration of backup to Disk0:
Hello together,
I want to back up my configuration of start-CAT6500 to disk0: flashcard and that you want to save the config file with the actual timestamp in the config-file-name on disk0:
In what follows the syntax:
Event Manager applet backup_conf_to_CF_card
syslog event model ' % PFINIT-SW1_SP-5-CONFIG_SYNC: Sync'ing to the standby router startup configuration. "
command action 1.0 cli 'enable '.
Action 2.0 cli command "conf t".
Action 3.0 cli 'file quiet guest. "
Action 4.0 cli command "end".
action 5.0 cli command "" copy startup-config disk0:backup_conf?".
action 6.0, "conf t" cli command
Action 7.0 cli command "end".
action 8.0 cli don't command "no quiet guest file".
subject of the server "10.158.128.120" to "XXXX" to "XXXX" action 9.0 mail ' testlab saved on disk0 boot configuration:
!
Is there a date variable native, I can use? What would be the proper syntax?
Thank you very much
BR Patrick
It is a little easier in TCL to control the file name. I use the following to configs copied to a server TFTP (environment variable) in a specific date format (I use other scripts to call this script on a regular and the basis of change in config):
: cisco::eem:event_register_none maxrun 60
If {!} [info exists BackupTFTPServer]} {}
the value "policy cannot be performed: variable BackupTFTPServer is not defined.
error $result $errorInfo
}the timestamp value [clock format [clock second] - format {% Y.%m.%d.%H%M%S} - gmt {false}]
Set routername [host name for information]
Set the location tftp: / / $BackupTFTPServer / $routername. $timestamp.confimport namespace: cisco::eem: *.
import namespace: cisco::lib: *.If {[result catch {cli_open}]
error $result $errorInfo
} else {}
Table game cli1 $result
}If {[result catch {cli_exec $cli1 (fd) 'enable'}]
error $result $errorInfo
}If {[catch {cli_exec $cli1 (fd) ' configure terminal '} result]}
error $result $errorInfo
}If {[result catch {cli_exec $cli1 (fd) "invites quiet file"}]
error $result $errorInfo
}If {[result catch {cli_exec $cli1 (fd) 'end'}]
error $result $errorInfo
}If {[result catch {cli_exec $cli1 (fd) 'copy running-config $location'}]
error $result $errorInfo
}If {[catch {cli_exec $cli1 (fd) ' configure terminal '} result]}
error $result $errorInfo
}If {[result catch {cli_exec $cli1 (fd) "no prompt quiet file"}]
error $result $errorInfo
}If {[result catch {cli_exec $cli1 (fd) 'end'}]
error $result $errorInfo
}If {[result catch {cli_close $cli1 (fd) $cli1 (tty_id)}]
error $result $errorInfo
} -
I wrote a very simple script today... Basically, the idea is to use the command cli_run_interactive to EEM cli library extensions. According to this document
http://www.Cisco.com/en/us/docs/iOS-XML/iOS/EEM/configuration/XE-3SE/5700/EEM-CLI-library-Tcl.PDF
I have to use the: cisco::eem: namespace, I did. Then, again in the same paper I found the command cli_run_interactive which is exactly what I have to, run a command, watch for a predefined command output and respond to this topic, once again in a way predefined. Pretty simple. The script below:
: cisco::eem:event_register_none maxrun 36
import namespace: cisco::eem: *.
import namespace: cisco::lib: *.
Set the 'clear line' 46 cmd1
cmd1_exp1 value {[confirm]}
Set cmd1_rep1 {y}
Set cmd1_response [list [list wait answer $cmd1_exp1 $cmd1_rep1]]
the value of clist [list "$cmd1 order $cmd1_response answers"]
cli_run_interactive {clist}
So far, so good, I save the script:
Runn terminal #show | s event handler
Event Manager user Directorystrategie flash: /.
user of type event manager strategy run_interactive.tcl
The #show event handler registered terminal strategy
N ° class Type Event Type trap time registered name
user 1 script no Off 8 Tue Oct 17:19:04 2013 run_interactive.tcl
PolicyName {run_interactive.tcl}
Nice 0 priority queue normal 36,000 maxrun
But then, when I try to run the script:
Terminal #event Manager run run_interactive.tcl
Name of the command terminal #invalid "cli_run_interactive".
When running
"cli_run_interactive {clist}.
called inside
"$slave $Contents eval.
(procedure "eval_script" line 7)
called inside
"eval_script slave $scriptname.
called inside
"If {$security_level == 1} {#untrusted script.
create an interp - slave
Interp share {stdin slave
Interp share {} stdout slave
..."
(file "system:/lib/tcl/base.tcl" line 50)
Run political MCI failed: invalid command name "cli_run_interactive".
It seems to me that I missed a statement somewhere along the way, but I don't know where and what exactly... Any help is appreciated...
When I wrote the function, the syntax is:
cmd1 'first order' Set
the value of cmd [list 'send' $cmd1 'answers' [list ['wait' list {[confirm]} 'reply' 'y']]
Table game sendexp $cmd
cli_run_interactive [list [array get sendexp]]
-
can not completely download texas hold em/free MSN WEB SITE
on the website msn, play Texas Hold Em is a free download for the last three years. I have had no trouble playing this game. S three days ago when trying to play too much an icon on my desktop, it fail to download. Just before the last step, a pop up to a stated unable to download/try again/clear. I spent hours with Microsoft/HP/Norton 360 / MY Optimum .net Server - none was able to find the reason for not having to download the last step (table game). I have a tip for you, it has something to with the active X control. Search and let me know what was wrong... Thank YOU please contact me at. The following places - my name is GASPERINO MISTRETTA.
Hi GASPERINO MISTRETTA,.
Thanks for posting your question in the Microsoft Community.
I appreciate your efforts in getting the problem solved, and I will definitely help you.
Please answer the following questions so that I could help you further:
- Did you of recent changes made to your computer?
- You have a parallel operating system installed?
- You receive a different error message?
Try the steps below and get back to me with the results:
- Proxy
Try to disable the proxy settings by referring to this link: http://www.ehow.com/how_6347299_disable-proxy-settings.html - Plugin update and reinstall
The issue can also occur because of outdated plugins or wrong. Update of Adobe Flash Player and Adobe Shockwave player. If this does not work, also try reinstalling the. - ActiveX controls
The game may require some ActiveX controls that are not installed / enabled in your computer. To do this, try to use the online version of the Hold em poker and it prompts you to activate / install some ActiveX controls. - Source
If nothing works, I recommend you to download it from another source: http://download.cnet.com/Texas-Hold-em-Poker/3000-2647_4-10074069.html
PS- Please do not disclose your personal e-mail or phone number. on this site. This could damage your privacy.
If this does not resolve the problem or you need help, feel free to reply to this message.
Ashwin
-
BI Publisher - impression is from the 2nd Page.
Hello
For a particular user, impression is from the 2nd Page leaving 1st Page Blank.
Please find attached the xml file and the rtf model.
You have nested tables.
Allow external most table breaking across page. Otherwise, if the table exceeds the length of 1 page so the whole table games would be moved to the 2nd page.
Please see this (attached to the model up-to-date; after setting this property, I can see the results on the 1st page)
-
Need to find the common number
Need to find a common number among all of the calls:
Create table call (key id Number (15) not null, mobile_number number primary (10), other_party number (10), call_type varchar2 (10), the call_date_time date, number (15)) duration;
insert into values of the call (1,9818764535,9899875643, 'IN', to_date (24 April 13 02:10:43 "," dd-MON-yy hh24:mi:ss'), 10);
Insert in appeal values (2, 9897451236,9899875643, 'OUT', to_date (April 28, 13 08:11:13 "," dd-MON-yy hh24:mi:ss'), 20);
Insert in appeal values (3, 9899917277,9899875643, 'IN', to_date (30 April 13 18:07:02 "," dd-MON-yy hh24:mi:ss'), 30);
insert into values of the call (4,9818764535,9215478213, 'IN', to_date (1 May 13 02:11:13 "," dd-MON-yy hh24:mi:ss'), 40);
Insert in appeal values (5, 9899917277,9215478213, 'IN', to_date (1 May 13 08:17:02 "," dd-MON-yy hh24:mi:ss'), 25);
Insert in appeal values (6, 9897451236,9012451785, 'OUT', to_date (1 May 13 20:21:04 ',' dd-MON-yy hh24:mi:ss'), 67);
Query criteria:
common calling to the list of numbers that is in contact with the listed numbers.
Mobile_number entry:
9818764535
9897451236
9899917277
exit number common
Mobile another numberlength part Date_Time
9818764535 9899875643 24 APRIL 13 02:10:43 10
9897451236 9899875643 28 APRIL 13 08:11:13 20
9899917277 9899875643 30 APRIL 13 18:07:02 30Hello
One way is to encrypt the target in a table game or result, as above, knapen don't:
WITH input_number AS ( SELECT 9818764535 AS mobile_number FROM dual UNION ALL SELECT 9897451236 FROM dual UNION ALL SELECT 9899917277 FROM dual ) SELECT * -- or list columns wanted FROM call WHERE mobile_number IN (SELECT mobile_number FROM input_number) AND other_party IN (SELECT mobile_number FROM input_number) ;
-
My teacher has presented us with the next challenge.
There is a table that has 3 columns:
-L' team
-The date of the game
-Won or lost
Write a SQL query (no PL/SQL), who returns to the team or teams that has / have the most wins and the number of consecutive wins.
Only "regularly" SQL is allowed, so no specific to Oracle functions.
I have (I think) solved this problem, but I was wondering what you guys would come with.
Later I will post my solution.
Below, I've provided some examples of DDL.
Published by: popovitsj on April 3, 2013 07:50CREATE TABLE Games(Team VARCHAR2(10), MatchDate DATE, WL VARCHAR2(1)); INSERT INTO Games VALUES ('TeamA','1-JAN-2012','W'); INSERT INTO Games VALUES ('TeamA','2-JAN-2012','W'); INSERT INTO Games VALUES ('TeamA','3-JAN-2012','W'); INSERT INTO Games VALUES ('TeamB','4-JAN-2012','W'); INSERT INTO Games VALUES ('TeamB','5-JAN-2012','W'); INSERT INTO Games VALUES ('TeamB','6-JAN-2012','W'); INSERT INTO Games VALUES ('TeamA','7-JAN-2012','L'); INSERT INTO Games VALUES ('TeamA','8-JAN-2012','W'); INSERT INTO Games VALUES ('TeamA','10-JAN-2012','W');
Published by: popovitsj on April 3, 2013 08:21
Published by: popovitsj on 3-Apr-2013 12:23
Published by: popovitsj on 3-Apr-2013 12:36Peter vd Zwan wrote:
OK, I'll post it first:And I will post Second:
select team, streak_num from ( SELECT team, count(*) streak_num, rank() OVER(ORDER BY count(*) DESC) rnk from ( SELECT team, wl, row_number() OVER(PARTITION BY team ORDER BY wl, matchdate) - row_number() OVER(PARTITION BY team ORDER BY matchdate) grp FROM games ) WHERE wl = 'W' GROUP BY team, grp ) where rnk = 1;
The innermost query uses the Tabibitosan method to allocate the same number of consecutive victories (see the FAQ forum on 'consecutive sequences').
The average application takes advantage of the fact that you can use within an analytical function aggregates: it gets the length of the streak and the rank of the length of the sequence.
The outermost query throws away everything except rank 1, keeping the longest streak or streaks.
Published by: stew Ashton on 4 April 2013 11:31
-
Splitting of a column and get the strings as different columns
I had a table with lets say 4 columns.
age sex nationality name
ABC - xyz 20 M IND
def - uvw F 30, US
Now I want 5 columns with 1 name, first name as 2nd, as 3rd age sex nationality as 4th, 5th.
nationality of first name last name age sex
ABC xyz 20 M IND
def uvw F 30, US
How to get results like that since the above mentioned table game.
TIA.
Published by: 986155 on March 12, 2013 05:35
Published by: 986155 on March 12, 2013 05:35Use SUBSTR/INSTR:
with t as ( select 'abc xyz' name,20 age,'M' gender,'IND' nationality from dual union all select 'def uvw',30,'F','US' from dual ) select substr(name,1,instr(name,' ') - 1) name_part1, substr(name,instr(name,' ') + 1) name_part2, age, gender, nationality from t / NAME_PA NAME_PA AGE G NAT ------- ------- ---------- - --- abc xyz 20 M IND def uvw 30 F US SQL>
SY.
Maybe you are looking for
-
Try to install Microsoft Silverlight Upgrade KB979202
Windows will not install Silverlight upgrade KB979202. Recently solved a similar problem with the Framework 1.1 update to reinstall the Framework 1.1 and then install Framework 2.0 and 3.5 of the Framework. Have disabled Norton Antivirus while trying
-
Outlook Express sent Box problem.
Outlook Express 6 stopped saving messages in my Outbox. I cleaned the Outbox and it started to work, but is now show the date as April 17. How can I fix it? OE6 can be updated?
-
Autoconfiguration IPv4 on windows 2008 server R2 standard
I had windows Server2008 R2 with AD, it has a static IP address, whenever I restart the server IP to change to 192.256.x. When I run Ipconfig I see IPve award above mentioned dummy IP autoconfiguration. Why is this happening? and how can I disable th
-
Is it possible to disable a field so that it cannot be edited or concentrate? I tried setVisualState (ButtonField.VISUAL_STATE_NORMAL) for a few buttons I have, but they are only temporarily disabled (or at least look disabled).
-
I can not connect on app world with my paypal account, I bought all the programs for my phone. Because I buy the Advanced Call Manager and there are no just active license key through trial program, says "there was a problem of generation of the lice