Helps the REST FUNCTION
Hi allI am preparing the review of the basic course 1 SQL.
I'm confused about function REST.
I use Sybex (11g) for my studies.
Now the REST is set as follows:
REST (x, y): the function returns the rest if it divides X.
Now the following queries have been used.
Select the stay (13.5), stay (12.5), Remainder (12.5,5) twice;
This gave-2, 2 and 2.5 respectively.
My confusion is how remains (12.5) will return - 2 instead of 3.
I ran the query using sql and still have-2, please someone must help very urgent
as I don't understand why it must be so.
Thank you
Harrison
Hello
If you look in the documentation Oracle the function else is
rest (m, n)
The rest is calculated as:
m (n * X) where X is the closest whole number of m / n
http://www.techonthenet.com/Oracle/functions/remainder.php
Thank you
Tags: Database
Similar Questions
-
Help the ActionScript functions
Hey, can someone please help me find a solution in this code that I have. I use this code to make a rhythm game gameplay mechanics, but there seems to be a problem with the code that I colored in red.
var timer1:Timer = new Timer (1000,1);
Timer1.addEventListener (TimerEvent.TIMER, addRed);
var score: int;
stage.addEventListener (KeyboardEvent.KEY_DOWN, hitRed);
function addRed(e:TimerEvent) {}
var activeRed:red = new red();
activeRed.x = 75;
activeRed.y = - 100;
activeRed.vy = 7.5;
addChild (activeRed);
activeRed.addEventListener (Event.ENTER_FRAME, animRed);
}
function hitRed(activeRed:KeyboardEvent) {}
If (activeRed.keyCode == Keyboard.S) {}
activeRed.target.removeEventListener (Event.ENTER_FRAME, animRed);
activeRed.target.parent.removeChild (activeRed);
score += 1
}
}
function animRed(e:Event) {}
var borderBottom = 800 + (e.target.height / 2);
e.Target.y += e.target.vy;
if(e.Target.y > borderBottom) {}
e.target.removeEventListener (Event.ENTER_FRAME, animRed);
e.target.parent.removeChild (e.target);
}
}
Since you declare the variable activeRed inside a function, its scope is limited inside this function. Try declare it outside the function.
-
I have this SELECT below I have to run it in a LOOP for each activity_id (record) that I get from the join.
In addition, this SELECTION should be run in multiple places in a procedure for details and for whom record-> I run the assign_course or the assign_test as below.
Can someone please help me to write a function that would have this select.inputs are strtplanid, strPersonid, p_objective_id
FOR activity_id( IN (SELECT objact.activity_id, objact.activity_type,objact.IS_REQUIRED FROM test_training_plan tp, test_tp_objective tp_obj, test_train_obj_activity objact WHERE tp.tplan_id = tp_obj.tplan_id AND tp.tplan_id = strtplanid AND tp_obj.t_objective_id = p_objective_id AND tp_obj.t_objective_id = objact.t_objective_id AND objact.activity_id NOT IN ( SELECT tplplr.activity_id FROM test_learning_record lr, test_learning_record lr1, test_tp_learning_activity tplplr WHERE lr.lr_catalog_history_id = tplplr.activity_id AND lr.learning_record_id = tplplr.activity_lp_lr_id AND tplplr.tp_lp_lr_id = lr1.learning_record_id AND lr1.lr_catalog_history_id = strtplanid AND lr.lr_person_id = strPersonid AND lr1.lr_person_id = strPersonid AND lr.status IN ('PASSED', 'WAIVED', 'TESTED_OUT')) AND objact.activity_id NOT IN ( SELECT event_id FROM test_train_obj_activity toa, test_event_sessions sessions, test_learning_record lr1, test_tp_learning_activity tplearnact, test_learning_record tplr WHERE toa.activity_id = sessions.event_id AND sessions.event_session_id = lr1.lr_catalog_history_id AND lr1.learning_record_id = tplearnact.activity_lp_lr_id AND tplearnact.tp_lp_lr_id = tplr.learning_record_id AND tplr.lr_catalog_history_id = strtplanid --AND toa.is_required = 1 AND toa.t_objective_id = obj.t_objective_id AND tplr.lr_person_id = strPersonid AND lr1.lr_person_id = strPersonid AND lr1.status IN ('PASSED', 'WAIVED', 'TESTED_OUT'))) LOOP IF (activity.activity_type = 'Course') THEN SP_ASSIGN_COURSETP(strPersonid,activity.activity_id,strPersonid,activity.activity_type, activity.IS_REQUIRED,strtplanid,v_straccreditingorg); ELSif (activity.activity_type ='Test') THEN SP_ASSIGN_TESTTP(strPersonid,activity.activity_id,strPersonid,activity.activity_type, activity.IS_REQUIRED,strtplanid,v_straccreditingorg); END IF;
Hello
Read this: http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14261/tuning.htm#sthref2376
And: http://www.oracle.com/pls/db102/search?remark=quick_search&word=REF+CURSOR+VARIABLE&tab_id=&format=ranked -
I have a requirement to get the records of previous values, I used the LEAD feature. The final result should return only rows that have multiple records... If its only one record then that is not part of the result.
I don't want the ID 3 because it contains only one record of the result above... rest should come. Any ideas?--Table Creation CREATE TABLE EHR( ID NUMBER, NAMEID VARCHAR2(100), SAL NUMBER, DT DATE); -- Inserting the data Insert into ehr (ID, NAMEID, SAL, DT) Values (1, 'A', 100, TO_DATE('10/08/2012 12:35:10', 'MM/DD/YYYY HH24:MI:SS')); Insert into ehr (ID, NAMEID, SAL, DT) Values (1, 'A', 200, TO_DATE('10/09/2012 12:35:16', 'MM/DD/YYYY HH24:MI:SS')); Insert into ehr (ID, NAMEID, SAL, DT) Values (1, 'A', 300, TO_DATE('10/10/2012 12:35:21', 'MM/DD/YYYY HH24:MI:SS')); Insert into ehr (ID, NAMEID, SAL, DT) Values (2, 'B', 100, TO_DATE('10/08/2012 12:35:10', 'MM/DD/YYYY HH24:MI:SS')); Insert into ehr (ID, NAMEID, SAL, DT) Values (2, 'B', 200, TO_DATE('10/09/2012 12:35:16', 'MM/DD/YYYY HH24:MI:SS')); Insert into ehr (ID, NAMEID, SAL, DT) Values (2, 'B', 300, TO_DATE('10/10/2012 12:35:21', 'MM/DD/YYYY HH24:MI:SS')); Insert into ehr (ID, NAMEID, SAL, DT) Values (3, 'C', 100, TO_DATE('10/17/2012 09:14:35', 'MM/DD/YYYY HH24:MI:SS')); COMMIT; -- Query select id,nameid, sal, dt, LEAD(sal,1,0) over ( partition by id order by id )as sal_prev, LEAD(dt) over ( partition by id order by id ) as dt_prev from ehr Order by id , DT desc -- Result ID NAMEID SAL DT SAL_PREV DT_PREV 1 A 300 10/10/2012 12:35:21 PM 200 10/9/2012 12:35:16 PM 1 A 200 10/9/2012 12:35:16 PM 100 10/8/2012 12:35:10 PM 1 A 100 10/8/2012 12:35:10 PM 0 2 B 300 10/10/2012 12:35:21 PM 200 10/9/2012 12:35:16 PM 2 B 200 10/9/2012 12:35:16 PM 100 10/8/2012 12:35:10 PM 2 B 100 10/8/2012 12:35:10 PM 0 3 C 100 10/17/2012 9:14:35 AM 0
I think you want to delete the order of numbering and change the select * for columns that you need, if not, it seems, why not test on the sample table you provided?
Edited by: bencol on 17 October 2012 15:05
Edited by: bencol on 17 October 2012 15:08
-
Here is an example of the table data:
I would get this:ID NAME Start 1 SARA 01-JAN-2006 2 SARA 03-FEB-2006 3 LAMBDA 21-MAR-2006 4 SARA 13-APR-2006 5 LAMBDA 01-JAN-2007 6 LAMBDA 01-SEP-2007
I tried using partition and run the function but partition name combines all the lines of Sara and Lambda lines into a single group/partition that is not I am trying to get.Name Start Stop SARA 01-JAN-2006 20-MAR-2006 LAMBDA 21-MAR-2006 12-APR-2006 SARA 13-APR-2006 31-DEC-2006 LAMBDA 01-JAN-2007 <null>
Is there an analytic function or other means to achieve to combine date ranges only when the same person appeared conescutively?
Thank you.This can be easily achieved using tabibitosan:
First of all, you need to identify 'groups', that each name in the list belongs
with sample_data as (select 1 id, 'SARA' name, to_date('01/01/2006', 'dd/mm/yyyy') start_date from dual union all select 2 id, 'SARA' name, to_date('03/02/2006', 'dd/mm/yyyy') start_date from dual union all select 3 id, 'LAMBDA' name, to_date('21/03/2006', 'dd/mm/yyyy') start_date from dual union all select 4 id, 'SARA' name, to_date('13/04/2006', 'dd/mm/yyyy') start_date from dual union all select 5 id, 'LAMBDA' name, to_date('01/01/2007', 'dd/mm/yyyy') start_date from dual union all select 6 id, 'LAMBDA' name, to_date('01/09/2007', 'dd/mm/yyyy') start_date from dual) select id, name, start_date, lead(start_date, 1, to_date('31/12/9999', 'dd/mm/yyyy')) over (order by start_date) next_start_date, row_number() over (order by start_date) - row_number() over (partition by name order by start_date) grp from sample_data; ID NAME START_DATE NEXT_START_DATE GRP ---------- ------ ---------- --------------- ---------- 1 SARA 01/01/2006 03/02/2006 0 2 SARA 03/02/2006 21/03/2006 0 3 LAMBDA 21/03/2006 13/04/2006 2 4 SARA 13/04/2006 01/01/2007 1 5 LAMBDA 01/01/2007 01/09/2007 3 6 LAMBDA 01/09/2007 31/12/9999 3
You can see the group number is generated by comparing the rownumber overall of all lines (in order) with the rownumber of the rowset by name (in the same order) - when there is a gap because another name appears between the two, the group number changes.
Once you have identified the number of group for each set of rows, it is easy to find the min / max values in this group:
with sample_data as (select 1 id, 'SARA' name, to_date('01/01/2006', 'dd/mm/yyyy') start_date from dual union all select 2 id, 'SARA' name, to_date('03/02/2006', 'dd/mm/yyyy') start_date from dual union all select 3 id, 'LAMBDA' name, to_date('21/03/2006', 'dd/mm/yyyy') start_date from dual union all select 4 id, 'SARA' name, to_date('13/04/2006', 'dd/mm/yyyy') start_date from dual union all select 5 id, 'LAMBDA' name, to_date('01/01/2007', 'dd/mm/yyyy') start_date from dual union all select 6 id, 'LAMBDA' name, to_date('01/09/2007', 'dd/mm/yyyy') start_date from dual), tabibitosan as (select id, name, start_date, lead(start_date, 1, to_date('31/12/9999', 'dd/mm/yyyy')) over (order by start_date) next_start_date, row_number() over (order by start_date) - row_number() over (partition by name order by start_date) grp from sample_data) select name, min(start_date) start_date, max(next_start_date) stop_date from tabibitosan group by name, grp order by start_date; NAME START_DATE STOP_DATE ------ ---------- ---------- SARA 01/01/2006 21/03/2006 LAMBDA 21/03/2006 13/04/2006 SARA 13/04/2006 01/01/2007 LAMBDA 01/01/2007 31/12/9999
If you want the date to appear as null max, you will need to use a cast or decode to change it - I'll leave that as an exercise for you to do! I'll also let you to find how to get the day before for the stop_date.
-
Help automate and functions by the numbers
Hello!
I need assistance with numbers 3.6.1 for OS X El Capitan. My question is really complicated, and I couldn't even begin to understand what to search using search engines, that is why I turn to the experts in communities for help.
What I'm trying to do is set up a system where when an a table on a single sheet is changed, the information on a second table on a second sheet is updated to match. Specifically, on the first table on the first worksheet, I keep a spreadsheet of all the video games I have in my collection, and with each game video I save several data as platform, Publisher, genre and ESRB rating points, and so on, as follows:
On the second picture, I have an assortment of tables of data that takes into account the number of games I have they fall into each of these same points data in separate tables, so, how many games I have for every platform, every Editor, in every kind and with each ESRB rating, as follows:
I was able to set up all the tables on the second sheet automatic update of the charges for each individual in each category element, so if I add, say, a new game of Nintendo 3DS to the first sheet on the first table, the corresponding to "Nintendo 3DS" number on the table of the second sheet platform is automatically updated. I did this by manually applying the COUNTIF function to each individual B cell in each table and was pointing at the corresponding column of table on the first worksheet with the correspondent of expression of the cell [for Game Boy Advance, for example, it looks like this: COUNTIF (Collection::Table 1: $Platform, "Game Boy Advance")]. Part of what I want to accomplish is to have all the B cells on the second act of sheet as "smart cells", if you want to, where they are all automatically use the COUNTIF function using the expression in each corresponding to a cell, instead of the manual set up I have now. Is something like this? If so, I want finally to do is to have the paintings on the second sheet automatically be updated to take account of the new factors of table on the first worksheet. That is if I add a game to a new platform, we will say Virtual Boy, to the table on the table of the first sheet, is it possible to have the picture of the platform on the second sheet automatically add a new entry for Virtual Boy, and should the COUNTIF automatic formatting for the work of B lymphocytes as well, automatically count the number of entries of Virtual Boy in the platform column the first sheet as well?
Here is a link to my spreadsheet in iCloud for reference (remember, it's 'View Only'): https://www.icloud.com/numbers/000AvaqQSb1iRb3-5XbyaoNww#My_Collection
I hope all this makes sense to someone out there, I tried to explain as clearly as I could. I'm still sort of novice in numbers, if I appreciate any amount of teaching or imparting wisdom!
Thank you
-Kill
Kill them salvation.
for all B cells on the second act of sheet as "smart cells", if you want to, where they are all automatically use the COUNTIF function using the expression in each corresponding to a cell, instead of the manual set up I have now.
Formula in B2 (and fill by dragging the handle downwards to fill yellow)
= COUNTIF(Collection::Table 1::$B,A2)
B2 in the platform table and paste in the length of Table B2. It will show zero because he seeks the wrong column in the table on the sheet Collection.
Click on the "Collection::Table 1: $B" diamond in the formula editor to select.
Go to the Map Collection and click on the label C.
AHA! It always displays zero because does not match the description of length:
"Very short (less than 5 hours)" on the card product and "Very short" on the Collection sheet.
The descriptions must match exactly.
The easy way to change them in the Collection journal is to sort the table. But first of all insert another column, and then type 1 then 2 and fill down. Then you can sort to the original order.
Now sort the column Length.
Change the description (copy and paste into each "block")
Funny looks because the line height are different
The COUNTIF works because the descriptions are now (the formula now displays column D because of the new column of original order of Collection).
I'll post this before the time-out annoys me.
Kind regards
Ian.
-
With the iPad Pro 9.3.1 running, I do find a way to set the sleep function. I sleep in about two minutes. Help
(It sleeps)
-
Since I use photoshop CC I have not found a way to use the discreen function when you scan... help!
discreen function?
-
Helps the function of class of SMTP with authentication
My server no longer supports the php mail() feature. I need to use the SMTP class with the authentication function in my php code, and they suggested this to replace it: on-with-authentication-in-php-code http://www.yrhostsupport.com/index.php?/Knowledgebase/Article/View/101/2/smtp-class-functi
So, I tried, but cannot make it work. This is my test form:
< are method = "post" action = "forms/sendmail - test2.php" onsubmit = "return checkEmail (this);" >
< script type = "text/javascript" language = "JavaScript" >
< /script >
< fieldset > < legend > news < / legend >
< Label > name < / label >
< input type = "text".
name = "name" size = "30" maxlength = "40" / > < br / >
< label > < span class = 'redText' > * </span > Email < / label >
< input name = "email" type = "text" size = "30" maxlength = "40" / >
< br / >
< label > < span class = 'redText' > * </span > Message < / label >
< textarea cols = "40" rows = "5" name = "message" type = "text" / > < / textarea > < br / >
< / fieldset >
< input type = "reset" value = "Reset" / >
< input type = value = "submit" / >
< / fieldset >
< / make >
It's sendmail - test2.php where going to the form. It will not be sent unless I have comment on the first 10 lines.
<? PHP
include ('Mail.php');
//$to = " [email protected] "; "
$name = $_REQUEST ['name'];
$email = $_REQUEST ['email'];
$message = $_REQUEST ['name'];
$headers = "from: $email";
$subject = "price quote";
$fields = array();
$fields {'name'} = 'Name ';
$fields {'email'} = 'Email ';
$fields {'message'} = 'Message ';
$recipients = ' [email protected] '; //CHANGE
$headers ['from'] = ' [email protected] '; //CHANGE
["to"] = $headers ' [email protected] '; //CHANGE
$headers ['subject'] = 'Test Message';
$body = "test message";
Set the SMTP settings
$params ['host'] = "levy.dnsbox25.com";
$params ['port'] = '25';
$params ["auth"] = "PLAIN";
$params ["username"] = ' [email protected] '; //CHANGE
$params ["password"] = "xxxxxx"; CHANGE
/ Next option allows the SMTP debug and will print the SMTP Protocol
conversation on the page, it will help only with authentication problems. */
$params ['debug'] = 'true ';
Create the mail object using the Mail::factory method
$mail_object = & Mail::factory ('smtp', $params);
Print the parameters you use for the page
{foreach ($params as $p)
echo "$p < br / > ';
}
Send the message
$mail_object-> send ($recipients, $headers, $body);
? >
It used to work well when I used
$send = mail ($ $subject, $body, $headers);
$send2 = mail ($from, $subject2, $autoreply, $headers2);
But they said I can't use it anymore. I'm good with HTML and CSS, but I don't know much about php. Thanks for any help integrating one of in this new code!
It is to be expected. When you assign a value to a variable that was already assigned, you replace the previous value. You must add. Try this
$body = "name:". "." $name. "\r\n". "e-mail:". "." $email. "\r\n". $message
-
Question: I'm new to LR and did install you on a Mac desktop computer and laptop. On the laptop, the basic function under develop simply disappeared. I'm lost. Help.
This is a common problem. The basic Panel is simply hidden.
Billboards / of masking is actually a function of Lightroom, but it is intuitive--not many people know that there are - for the most newcomers are thrown when a Panel is somehow hidden.
Right-click anywhere in the area of the Panel on the right hand side and a context menu will appear.
Click on the basic option to re - appear the basic Panel.
-
need help to get the value using the REGEXP_REPLACE function.
I am trying to extract the value placed between "< listitems >... < / listitems >" but I am unable to get these value using the REGEXP_REPLACE function.
select REGEXP_REPLACE('<InputParameters></ParamSet><listitems>14545454</listitems></ParamSet></InputParameters>' ,'(<InputParameters>.*<listitems>)(.*)(</listitems>.*<InputParameters>)' ,'\2') from dual;
Can someone please help me achieve this goal.required output: 1454554
Hello
You forgot the / before the last InputParameters. If fix you that, your code will work.
Here is a slightly different way:
SELECT REGEXP_REPLACE ( '
' , '^.*?14545454 (.*?) .*$' , '\1' ) AS listitems FROM dual ;Least to type, the less likely you will have to make typos.
If there are 2 (or more) elements of listitmes, 1 will be returned.From Oracle 11.1, you can also use REGEXP_SUBSTR. I have Oracle 10.2 avaialable now, so I can test the following, but I think you'd say:
SELECT REGEXP_SUBSTR ( '
' , '14545454 (.*?) ' , 1 , 1 , NULL , 1 ) AS listitems FROM dual;When it comes with the text that is or looks to, XML, consider using XML functions.
-
help in the application without using the pivot function
Hi gurus,
Can you please help write the query without using the PIVOT function.
Thanks in advance!...WITH indata AS (SELECT 1 sn, '123:456,789,323:456,213,344,345:5454' x from dual UNION ALL SELECT 2, 'abcd:fgrfr,rfrf,rfred,tg:tg,tg:ophhh,op,vdfgbh:poijn' x from dual), instr AS (SELECT a.SN, rownum RN, B.column_value || CASE WHEN B.column_value NOT LIKE '%:%' THEN ':' END column_value FROM indata a, TABLE(CAST(multiset (SELECT trim(SUBSTR(x, (CASE LEVEL WHEN 1 THEN 1 ELSE instr(x, ',', 1, LEVEL - 1) + 1 END), (CASE instr(x, ',', 1, LEVEL) WHEN 0 then 4000 ELSE instr(x, ',', 1, LEVEL) - 1 - (CASE LEVEL WHEN 1 THEN 0 ELSE instr(x, ',', 1, level - 1) END) END))) FROM dual CONNECT BY level <= LENGTH(x) - LENGTH(REPLACE(x, ',', '')) + 1) AS sys.odcivarchar2list)) b) SELECT col1_val2, col1_val1, col2_val2, col2_val1, systimestamp FROM (select SN, ROW_NUMBER() over(partition by SN order by RN) RN, SUBSTR(column_value, INSTR(column_value, ':') + 1) VAL1, substr(column_value, 1, instr(column_value, ':') - 1) val2 FROM instr ) PIVOT(MAX(VAL1) VAL1, MAX(VAL2) VAL2 FOR SN IN(1 as col1,2 as col2));
Any help would be appreciated.user590978 wrote:
Can you please help write the query without using the PIVOT function.
with indata as ( select 1 sn,'123:456,789,323:456,213,344,345:5454' x from dual union all select 2, 'abcd:fgrfr,rfrf,rfred,tg:tg,tg:ophhh,op,vdfgbh:poijn' x from dual ), t1 as ( select x from indata where sn = 1 ), t2 as ( select x from indata where sn = 2 ), t3 as ( select level lvl, substr( x, instr(',' || x,',',1,level), instr(x || ',',',',1,level) - instr(',' || x,',',1,level) ) col1 from t1 connect by level <= length(x) - length(translate(x,'A,','A')) + 1 ), t4 as ( select level lvl, substr( x, instr(',' || x,',',1,level), instr(x || ',',',',1,level) - instr(',' || x,',',1,level) ) col2 from t2 connect by level <= length(x) - length(translate(x,'A,','A')) + 1 ), t5 as ( select lvl, substr(col1,1,instr(col1 || ':',':') - 1) col1_val1, substr(col1,instr(col1 || ':',':') + 1) col1_val2 from t3 ), t6 as ( select lvl, substr(col2,1,instr(col2 || ':',':') - 1) col2_val1, substr(col2,instr(col2 || ':',':') + 1) col2_val2 from t4 ) select col1_val1, col1_val2, col2_val1, col2_val2, systimestamp from t5 full join t6 on ( t6.lvl = t5.lvl ) order by coalesce(t5.lvl,t6.lvl) / COL1_VAL1 COL1_VAL2 COL2_VAL1 COL2_VAL2 SYSTIMESTAMP ---------- ---------- ---------- ---------- ------------------------------------- 123 456 abcd fgrfr 23-OCT-12 11.50.12.015000 AM -04:00 789 rfrf 23-OCT-12 11.50.12.015000 AM -04:00 323 456 rfred 23-OCT-12 11.50.12.015000 AM -04:00 213 tg tg 23-OCT-12 11.50.12.015000 AM -04:00 344 tg ophhh 23-OCT-12 11.50.12.015000 AM -04:00 345 5454 op 23-OCT-12 11.50.12.015000 AM -04:00 vdfgbh poijn 23-OCT-12 11.50.12.015000 AM -04:00 7 rows selected. SQL>
SY.
-
Help please, LCC does offer the same functionality as Adobe Stratus? How?
I found in the FAQ:
LCCS provides the same functionality as Adobe Stratus?
Yes. LCCS offers the same technology as Stratus today for P2P audio and video streaming. LCCS also offers a developer, framework and hosted service designed for real-time collaboration as well as the ability and the ability to connect RTMP connections with customers RTMFP.
The question is how can connect my existing application in Stratus with you CAC?
I don't want to use LCCS framework, I won't use the RTMFP Protocol as Stratus phone sample video, but in a commercial product, it is possible to supply?So, if possible, where I point my connectUrl key and developer of stratus in a supply service?
Thank you very much.
Hey elattanzio, I went through the same thing how you feel when I first tried begin with low-COST airlines. I wanted to create a connection to peer 2 peer between two applications flash with no server involved. I also moved the example of Stratus to the LCC.
The short answer is THAT LCCS always uses rooms to connect people. You can make a direct connection in hand pair using rtmfp in your application. In this case first of all your users connect to a room on the servers of the LCC, and then they will help you coordinate the rtmfp peer connection as you used with Stratus. So you end up with all your data flowing between two clients, but both clients are connect to the room in supply. Your customers must stay connected to companies low-cost for the duration of the video call. Now if your clients cannot establish a connection to the cause of NAT, firewall or other issues they're going back to rtmp and all traffic will now forward through the servers of the CCA. You can specify that you do not want your customer to fold well.
One other important thing to understand is the pricing model. There is an associated cost just be connected to the servers of CAC. We found it to be nominal if, but just enough to discourage you to stay connected all the time. This led me to develop our own system based on jabber, precense to see who was online and to initiate calls, etc.. Secondly the cost to say the audio and video traffic is routed through servers to SUPPLY was too high for our business model so we chose to not allow fall to rtmp. I think that the cost was reasonable based on the costs of bandwidth, etc., our model just could not bear.
So here you'll it's my understanding of things that I agonized about how to get good video chat working in our application. Yes to peer is not 100% free, but the cost isn't too bad and you get the benefits of Adobe running a cluster of servers for you. So for us the value was there. Good luck with the project.
-Eric
-
Need help with the query using the AVG function
First post here.
I am a student taking a SQL class and I can't find a query.
I think I'm close to get it, but I can not quite all the way there.
Three tables are involved in this problem. Here is a list of the tables and the areas concerned:
Problem:orders table: order# shipstate orderitems table: order# isbn quantity (How many copies of book purchased on that order) books table: isbn retail (retail price of book)
I want to get an average of "total amount" by shipstate.
For example, in these tables, there are 8 records of the State of Florida.
However, there are only 5 unique order # for this State.
The amount of detail * quantity for these 8 disks (or 5 orders) is $345,10
Now to get my average $345,10 should be divided by 5. (number of unique commands)
In the following query it divides this $345,10 8. (number of records)
How to make this request to divide by the number of unique order # rather than the number of records?
According to me, once I get this part down, I can understand the rest of the problem.SELECT shipstate, AVG(quantity * retail) FROM orders JOIN orderitems USING (order#) JOIN books USING (isbn) GROUP BY shipstate HAVING SUM(quantity * retail) =ANY (SELECT SUM(quantity * retail) FROM books JOIN orderitems USING (isbn) JOIN orders USING (order#) GROUP BY shipstate)
The end result, I need, is to find all the individual commands that have a "total amount due" that is greater than the 'average amount due' for this state of clients.
Any help, suggestions or comments welcome.
MattYour average take into account the shipstate (8 disks), you can do that for the expected results.
With some examples of input data it would be easier, but here a try:SELECT shipstate, sum(quantity * retail)/count(distinct order#) FROM orders JOIN orderitems USING (order#) JOIN books USING (isbn) GROUP BY shipstate;
Nicolas.
delete the alias
Edited by: N. Gasparotto on October 3, 2008 19:28 -
I installed a bunch of addons and only a few icons are visible, and I can't find the rest help
I installed a bunch of addons and only a few icons are visible and I can't find the rest. They apear in the area add Manager as installed extensions but they donot apear on add on bar. How can I find work them. search google for example picture
its sad to hear that.
Please read the article resolves your problem. If not, then let us knowhttps://support.Mozilla.org/en-us/KB/what-happened-to-the-add-on-bar
Thank you
Maybe you are looking for
-
I tried following the advice offered in the different threads bit I found on this but nothing works out. I want the cursor to be in the address bar when I open a new window or when firefox opens without restoring a previous session. I solved the prob
-
Please check the picture as an attachment. I need to leave only discrete ticks (and lines) to X axis, for example 1, 2, 3, 4... There are a few measures where the x-axis is an index, not a value continues, so 1.2 makes no sense.
-
are there any recalls on nitebook
Is there a remind me button on laptop I couldn't find one.
-
Just installed Windows 7 Home Premium Upgrade - 32-bit Installed on the old Dell Dimension Dsktp 4500 s Monitor is a Dell S199WFP Flat widescreen. Everything seems fine, but the screen display resolution is messed up Display resolution is set to 640
-
Hello I ' w obtained a Pavilion dv5-1192, which is believed to have the support of an HDMI output, but when I try to connect it to the TV nothing happens. When I check, the only thing is that I have a VGA card, nothing to the HDMI. Help, please. Best