Why I am getting different RGB Values in photoshop vs. Illustrator?
The RGB values differ between Illustrator and Photoshop. The same file opened in photoshop displays different RGB values although the the colour was input correctly in illustrator. Both files were saved and reopened within the RGB colour space. There is a zero value in the desired RGB colour scheme, could this have something to do with it?
RGB values relate to the color space used. The same color in sRGB and Adobe RGB will have very different numbers (and vice versa).
There is no such thing as "RGB color space". That's a color mode, not a color space. There is only sRGB, Adobe RGB, ProPhoto RGB etc.
Similar Messages
-
Why do I get different tag icon combinations?
This is really bugging me and I can't fing an answer anwhere. I've just started organizing my photos by adding albums and keyword tags. I add the album to all the pictures and get a green album icon on the thumnail. Then for most of the images when I add a tag the album icon is gone and is replaced by a beige tag icon. But for some of the images, when I add the tag I get separate green album and blue tag icons. Why do i get different icon combinations depending on the image? Please help!!.
Yeah I’m sorry it’s not been fixed. I did complain to Adobe shortly after PSE9 was issued, when everything got given an orange tag. It seems to make no difference what icon you choose from the list, it ends up with something that looks like a luggage label colored beige. Of course the keywords will work but it’s all a bit frustrating.
-
How to get the RGB value of each pixel of a hole image?
Hi,
I'm trying the get the RGB(between 0 and 255) value of each pixel of a hole image. I writte this code:
public void convertImage()
int w = bufferedImage.getWidth();
int h = bufferedImage.getHeight();
int[] rgbs = new int[w*h];/* create a new array */
bufferedImage.getRGB(0,0,w,h,rgbs,0,w);
for(int i=0; i<10; i++)
System.out.println(rgbs);
But the value rgbs[] contain an 8 bits integer, it's possible to have the RGB of this.
In other case, do you have another sample of code to help me to get the RGB value of each pixel of a hole image?
thanks.Hi, I am currently working on an application which requires the generation of color histograms that are a representation of a given image ie; myImage.jpg. I have made use of the JAI API and used it's Histogram class to generate a histogram vector for the image that I provide.
However, upon closer inpsection, I have realised the following:-
(1) The image, as it contains multiple colours is a multi-banded image ie; this means that each individual pixel in the image contains multiple colour samples (I assume) ie; Red, Blue Green. Due to this, a "separate list of bins represents each individual band". This means that for myImage.jpg, there is not ONE individual vector that contains data such as "400 pixels purple" "5000 pixels yellow" etc but there are indeed 3 vectors that represent the image.
I have found this to be true using the getBinSize(int band, int bin) method call - the first parameter being 0,1,2 for Red Blue or Green.
My basic (or complex) problem is that I basically want to generate 2 color histogram vectors that represent 2 separate images and then compare these vectors "side-by-side" using the vector comparison algorithms that I have already developed.
Is there a way of using Java's Histogram class and it's associated methods to be able to store all colour information for an image in only ONE vector?? I am pretty certain that this is not possible, so my dilemma is now: - If I have an image and it is represented by three separate vectors/histograms, then how can I possibly compare these to say whether an image matches or not.
When a pixel is analysed by a program, what seems to be the result returned is how that pixel is made up in terms of Red, Green or blue ie; a purple pixel is X blue, X red and X green and hence 3 vectos existing.
Can anybody offer advice on how to achieve this task of looking at a pixel and simply determining it's actual color. I would preferably like to keep my code that I have already developed ie; the use of the Java Histoogram class but any other offerings are appreciated. -
Browse, open a Picture from phone. Getting the RGB value
Hai, can someone give me an example how to browse a picture file from the phone. And also an example on how to get the RGB value from a cordinate in a picture?
thx in advanced
ChapuiApple needs an "unsubscribe" option from iMessage, so you can cease to take part of the conversation, just like you would with notifications in a forum. This happens all the time with my family, a group text gets sent out, and you're stuck for hours hearing the beeps of messages getting sent back & forth. If not unsubscribed, just silence it so you still get a record of it, but you stop being notified every time a message shows up from that thread for a certain "period", say like 6 hours (in case anyone reuses the thread to send another group message later).
-
Why am I getting different values based on order of input when the task type remains the same?
I'm having a hard time understanding the results I'm getting when I input task information. Here are the scenarios with different, unlinked fixed work tasks:
I estimate a task will take 2 hrs to complete and put this into work. If I add 1 resource, work = 2 hrs, duration = 1 day?, Resource A = 25%
On the same task, if I add Resource B (along with keeping A), duration = 0.2 days, Resource A remains 25% and Resource B = 100% (no % shown)
If I try the same scenario (adding first resource, then adding a second) on another task, occasionally it will give a duration of 0.91 days??? What the hell is that about?
If I add 2 hrs for work then add both Resource A and Resource B at the same time I get duration = 0.5 days, Resource A = 25% and Resource B = 100%. Why is it giving a duration of 0.5 days and why does it not adjust the unit % for Resource B?
This one is really blowing my mind. If I don't add work but instead add both resources at the same time first it's either making work 8.2 hrs OR 16 hours! I've gotten this result on the same exact task doing the same exact input. How can this differ?!
No work input, both resources added initially and IF I get the correct 16 hours with 1 day duration, then I go ahead and change work to 2 hours, which produce Resource A & B = 100% and duration = 0.13 days.
This last scenario is the duration result I want to see so the resources can work on multiple tasks in 1 day, but I typically try to input the work or duration estimates into the schedule and then resources last. I also don't understand how there can be
such a wide range of results based on such similar scenarios. Also, having to do it this way creates another step since I have to go back and change the work...although I guess I would be doing that if I input estimates first.
Can anyone explain why I'm getting those very head scratching differences, as well as provide some insight into how you initially develop a schedule (order of inputs)? I'm wondering if this has something to do with the change in 2010 regarding resources
that I still don't understand?Thank you Julie for the quick reply. As indicated in the first part of my question all these scenarios are dealing with Fixed Work, so yes by default they are effort driven. I should have clarified on the 1st scenario the question mark was just to show duration
had not changed, I wasn't actually questioning why it hadn't changed. Scenario 1 worked as expected. Although I don't fully agree with it, Scenario 2 also worked as expected.
Scenario 3: Yes it is effort driven (fixed work). Resources are just test/fake resources so all information, including calendars, is default. This is one of those cases where I can produce that unusual result only on occasion, not everytime.
4. In my scenario it's fixed work, but I do get the same result as you with fixed unit. Question still remains in both cases of why is the duration 0.5 days on 2 hours total work? Also, why are both units 25% in fixed units, but in fixed work Resource A
is 25% and Resource B is 100% when in both cases they are working 1 hour? Lastly, if Units is going to be changed in this case then why isn't it 13% (1/8 hours)?
5. This is also fixed work and I'm not touching duration in any of the scenarios. Day is still default at 8 hours. I was assigning resources via Resource Names on the Gantt View. I'm thinking this had to be some sort of glitch because I can't consistently
produce the 8.2 hours result, but it happened multiple times.
I also follow the same steps you do, other than I guess the last one. When you say you enter work estimates while assigning does that mean you do that in the split pane/task details form? I've typically done it from the Gantt View, but that seems to be what's
causing my issue because when I tried doing it from task details it is giving me the duration I want. So thank you for that. I still don't understand why there is such a wide range of results, but at least it makes more sense to me that 100% Unit working on
a task duration of 0.13 days is 1 hour.
I apologize for how long this, but I'm trying to get out of some bad habits I've picked up by being forced to develop dumbed down schedules for the past few years. -
Why do I get Missing Parameter Values error from CrystalReportViewer in VS2005
Post Author: eseidel
CA Forum: .NET
Hi everyone,
I have spent way to much time trying to figure this problem out and am getting no where now. I was hoping someone with more experience in CR for VS2005(I think v.9) and VS2005 may be able to help. I have a report with 10 parameters that Im setting in code. I have another 3 parameters in a subreport(with same names as 3 in main report) that are being pushed in(I hope) through my ApplyParams() method. I have checked the output of each parameter before and after it is assigned in ApplyParams. All values are being set....So why do I keep getting an error when I run it for Missing Parameter Values no matter what I do? The error comes after SetDBLogonForReport(myConnectionInfo). I have been struggling with this problem for almost 3 days now and have tried numerous approaches. If I remove the subreport it works ok. Why is subreport not getting parameters(I think this is where the problem stems from)? Please any advice would be greatly appreciated. Thank you. If need be I can e-mail the report but I don't know how much that will help without being able to access the datasources.
Eric
Code Snippet
Private _Parameters As New System.Collections.Specialized.StringDictionary
Public Property Parameters() As System.Collections.Specialized.StringDictionary
Get
Return (_Parameters)
End Get
Set(ByVal Value As System.Collections.Specialized.StringDictionary)
If (Value Is Nothing Or _Parameters Is Nothing) Then Exit Property
For Each entry As DictionaryEntry In Value
_Parameters.Add(entry.Key, entry.Value)
Next
End Set
End Property
Private Sub SetParameters()
Parameters("kiPerformance") = rptKi.ToString
Parameters("PreparedBy") = rptPreparedBy
Parameters("SupplierName") = rptSupplierName
Parameters("Supplier") = rptSupplier 'Param in subreport too
Parameters("ApprovedBy") = rptApprovedBy
Parameters("kiPerformanceGoal") = rptKiThisGoal.ToString
Parameters("kiForecastGoal") = rptKiForecast.ToString
Parameters("kiNextGoal") = rptKiNextGoal.ToString
Parameters("kiBegRange") = rptBegDate.ToString("d") 'Param in subreport too
Parameters("kiEndRange") = rptEndDate.ToString("d") 'Param in subreport too
End Sub
Public Function ApplyParams()
Me.SuspendLayout()
Dim rpt As CrystalDecisions.CrystalReports.Engine.ReportDocument = _
crv.ReportSource
If (rpt Is Nothing OrElse _Parameters Is Nothing) Then Return False
Dim crParameterFieldDefinitions As ParameterFieldDefinitions = rpt.DataDefinition.ParameterFields
If (crParameterFieldDefinitions Is Nothing) Then Return False
For Each crParameterFieldDefinition As ParameterFieldDefinition In crParameterFieldDefinitions
If ((Not crParameterFieldDefinition.IsLinked) And _
_Parameters.ContainsKey(crParameterFieldDefinition.Name)) Then
Dim crParameterValues As ParameterValues = _
crParameterFieldDefinition.CurrentValues
If Not (crParameterValues Is Nothing) Then
Dim crParameterDiscreteValue As New ParameterDiscreteValue
crParameterDiscreteValue.Value = _Parameters.Item(crParameterFieldDefinition.Name)
crParameterValues.Add(crParameterDiscreteValue)
'Console.WriteLine(crParameterFieldDefinition.Name & ": " & crParameterDiscreteValue.Value)
crParameterFieldDefinition.ApplyCurrentValues(crParameterValues)
End If
End If
Next
crv.ReportSource = rpt
Me.ResumeLayout()
Return Nothing
End Function
Private Sub ConfigureCrystalReports()
Dim myConnectionInfo As ConnectionInfo = New ConnectionInfo
Dim pFields As New ParameterFields()
Dim pField As New ParameterField()
Dim disVal As New ParameterDiscreteValue()
'Connection stuff,sorry I can't show you this part
'Bind report
rptCard = New ReportCard
LoadDataSource()
rptCard.SetDataSource(dsOcc)
rptCard.Subreports("FailOcc").SetDataSource(dsOcc) 'Ive tried without this line as well
rptCard.PrintOptions.PaperSize = PaperSize.Paper11x17
rptCard.PrintOptions.PaperOrientation = PaperOrientation.Landscape
crv.ReportSource = rptCard
'Load parameters for report
SetParameters()
crv.RefreshReport()
SetDBLogonForReport(myConnectionInfo)
End sub
Private Sub SetDBLogonForReport(ByVal conn As ConnectionInfo)
Dim tableLogOnInfos As TableLogOnInfos = crv.LogOnInfo
For Each myTableLogOnInfo As TableLogOnInfo In tableLogOnInfos
myTableLogOnInfo.ConnectionInfo = conn
Next
End Sub
Private Sub crv_Error(ByVal source As Object, ByVal e As CrystalDecisions.Windows.Forms.ExceptionEventArgs) Handles crv.Error
MsgBox(e.Exception.Message)
e.Handled = True
End Sub
Private Sub crv_ReportRefresh(ByVal source As Object, ByVal e As CrystalDecisions.Windows.Forms.ViewerEventArgs) Handles crv.ReportRefresh
ApplyParams()
End SubPost Author: mewdied
CA Forum: .NET
By any chance are the parameters in your subreport stored procedure parameters?
There was a specific fix for stored procedure parameters available from:ftp://ftp1.businessobjects.com/outgoing/CHF/crnet20win32x86_en_chf.zip
The specific fix is described in the readme under Problem ID # ADAPT00532856 -
In Firefox, the RGB values are 50, 255, and 25. In Paint, they are 81, 171 and 67. These colors look quite different. I suspect Firefox is doing something with the
Does Firefox use the embedded color profile if there is one? How can I tell if there is one in a jpg and what it is?
-
Why I cannot get payroll result value ?
Expert,
In EBS Payroll R12, I define two elements A and B. A has priority 1500, B has priority 3500. So A will be processed ahead of B. I write a pl/sql package to calculate B, and attach the package to B through formula result. In the package, I will use "Pay value" of A, the logic can be abstracted as " A-Pay value * 0.05". However, the result of B is not my expected. I track my package and find the program doesn't get the Pay Value. I am sure my sql statement is right. So my conclusion is for one assignment calculation, these elements payroll result will be written back to DB together rather than one by one, right?
For my case, it I want to use the pay value of elements which have been calculated, how to do? Please give me some advice.
Thanks in advance.Dear thierry,
Thanks for your kindly help. I follow your hints to modify my fast formula of B as below:
Cal_B:
dummy=A_BALANCE_ASG_RUN /* A_Balance will contain element A*/ /* a new line added here */
v_rtvl=CAL_B_external_F /* It is formula function, which will contain external PLSQL call. The plsql will use the Pay value of A */
return v_rtvl
Per my understanding, after calling statement "dummy=A_BALANCE_ASG_RUN", the relevant pay result of A should be flushed to DB.
unfortunately, when I process my payroll, the result still remains unchange. It seems that CAL_B_external_F cannot get the "Pay value" of A
If I modify fast formula as below:
Cal_B:
v_rtvl=A_BALANCE_ASG_RUN
return v_rtvl
I can get v_rtvl whose value is equal to A_BALANCE_ASG_RUN. It seems the value of A_BALANCE_ASG_RUN can be captured in the fast formula.
So, How do I understand your hints as below:
"A element_A_asg_run in your second fast formula, before calling the plsql, can do the trick, eventually."
I am eager to your help.
Regards,
Michael
Edited by: Gang2 on Mar 22, 2009 10:45 PM -
Any idea why the plan gets different ?
Guys,
Please can anyone explain this behavior ?
I get different plans by changing the date literal.
Look at the query :
SELECT distinct A.XCM_CONSUMER_PK
FROM
(SELECT
cu10.XCM_CONSUMER_PK,
cu10.COUNTRY_ISO3_C,
cu10.CUST_CUSTOMER_R,
cu10.CUST_BRAND_C,
cu10.CUCON_CNTCT_ST_S,
cu10.CUCON_CNTCT_R
FROM
xcm_cu10_contact cu10,
xcm_vo01_vehofint vo01
WHERE
cu10.xcm_consumer_pk = vo01.xcm_consumer_pk (+) AND
cu10.cucon_cntct_st_s = vo01.cucon_cntct_st_s (+) AND
cu10.cucon_cntct_r = vo01.cucon_cntct_r (+) AND
--cu10.cucon_cntct_st_s > SYSDATE - 796
cu10.cucon_cntct_st_s > '01-JAN-2004'
) A
WHERE ( A.COUNTRY_ISO3_C = 'ESP'
AND A.CUST_BRAND_C = 'F'
AND ( A.CUCON_CNTCT_ST_S >= SYSDATE - 28)
);For the above query i get :
| Id | Operation | Name | Rows | Bytes | Cost | Pstart| Pstop |
| 0 | SELECT STATEMENT | | 28 | 1428 | 358 | | |
| 1 | SORT UNIQUE NOSORT | | 28 | 1428 | 358 | | |
| 2 | MERGE JOIN OUTER | | 28 | 1428 | 333 | | |
|* 3 | TABLE ACCESS BY GLOBAL INDEX ROWID| XCM_CU10_CONTACT | 28 | 784 | 41 | 3 | 3 |
|* 4 | INDEX FULL SCAN | SYS_C00404663 | 284K| | 26 | | |
|* 5 | SORT JOIN | | 18604 | 417K| 292 | | |
|* 6 | INDEX FAST FULL SCAN | XCM_VO01_VEHOFINT_IDX001 | 18604 | 417K| 189 | | |But when i change the - cu10.cucon_cntct_st_s as below
SELECT distinct A.XCM_CONSUMER_PK
FROM
(SELECT
cu10.XCM_CONSUMER_PK,
cu10.COUNTRY_ISO3_C,
cu10.CUST_CUSTOMER_R,
cu10.CUST_BRAND_C,
cu10.CUCON_CNTCT_ST_S,
cu10.CUCON_CNTCT_R
FROM
xcm_cu10_contact cu10,
xcm_vo01_vehofint vo01
WHERE
cu10.xcm_consumer_pk = vo01.xcm_consumer_pk (+) AND
cu10.cucon_cntct_st_s = vo01.cucon_cntct_st_s (+) AND
cu10.cucon_cntct_r = vo01.cucon_cntct_r (+) AND
cu10.cucon_cntct_st_s > SYSDATE - 796
--cu10.cucon_cntct_st_s > '01-JAN-2004'
WITH READ ONLY) A
WHERE ( A.COUNTRY_ISO3_C = 'ESP'
AND A.CUST_BRAND_C = 'F'
AND ( A.CUCON_CNTCT_ST_S >= SYSDATE - 28)
); And the plan goes :
| Id | Operation | Name | Rows | Bytes | Cost | Pstart| Pstop |
| 0 | SELECT STATEMENT | | 4 | 204 | 122 | | |
| 1 | SORT UNIQUE | | 4 | 204 | 122 | | |
| 2 | NESTED LOOPS OUTER | | 4 | 204 | 100 | | |
|* 3 | TABLE ACCESS BY LOCAL INDEX ROWID| XCM_CU10_CONTACT | 4 | 112 | 92 | 3 | 3 |
|* 4 | INDEX RANGE SCAN | XCM_CU10_IDX_001 | 7301 | | 2 | 3 | 3 |
|* 5 | INDEX RANGE SCAN | XCM_VO01_VEHOFINT_IDX001 | 1 | 23 | 2 | | |
-----------------------------------------------------------------------------------------------------------------I know this due the the way the date literal is used but i need to be more clearer. Please some one can explain ?
Thanks
GI am on 9.2.0.7
The READ ONLY is an extract of the view.
Well, i think i figured it out. I think it's due to the date format which Oracle chose..
By writing this way, Oracle chooses the same plan.
But my doubt still remains..
SELECT distinct A.XCM_CONSUMER_PK
FROM
(SELECT
cu10.XCM_CONSUMER_PK,
cu10.COUNTRY_ISO3_C,
cu10.CUST_CUSTOMER_R,
cu10.CUST_BRAND_C,
cu10.CUCON_CNTCT_ST_S,
cu10.CUCON_CNTCT_R
FROM
xcm_cu10_contact cu10,
xcm_vo01_vehofint vo01
WHERE
cu10.xcm_consumer_pk = vo01.xcm_consumer_pk (+) AND
cu10.cucon_cntct_st_s = vo01.cucon_cntct_st_s (+) AND
cu10.cucon_cntct_r = vo01.cucon_cntct_r (+) AND
--cu10.cucon_cntct_st_s > SYSDATE - 796
to_date(cu10.cucon_cntct_st_s,'DD-MON-YYYY') > to_date('01-JAN-2004','DD-MON-YYY')
) A
WHERE ( A.COUNTRY_ISO3_C = 'ESP'
AND A.CUST_BRAND_C = 'F'
AND ( A.CUCON_CNTCT_ST_S >= SYSDATE - 28)
[PRE[ -
Why am I getting very high values for the very low frequency region of a random signal?
I am tyring to produce a power spectrum graph for a Tachogram data, related to Heart Rate Variability Analysis. This data can be thought to be as a random signal, but has a frequency spectrum range of 0 - 1HZ.
The problem that I am facing is, I am getting very high values for very low frequency region, closer to DC value. Even the DC value is really high, in the range 10^8. It is suppose to be a low number. Any suggestions would be appreciated.
Thanks.Here is what my work is all about. I am trying to develop a software for Heart Rate Variability analysis. I am not sure if you are aware of heart beat waveforms, they are bunch spikes, occuring at irregular intervals. We have to do analysis on this waveform. How ? First we have to create a plot called Tachogram. This is done by, for example, let's name the first spike R1, the second one R2, and the third one R3, and so on. This is how the co-ordinate points are created. (R1, R2-R1), (R2, R3-R2), and so on...
Here R1 is the time instant at which the spike R1 occurs, and R2-R1 is the time difference between these peak occurences. So, if we plot these values, then it gives us one like what you saw on your time domain plot. What we have to do with this signal is, we have to apply FFT technique to produce its power spectrum for analysis. Generally the frequency range of the spectrum goes from 0 - 0.5 Hz. They part this range into VLF, LF, and HF, and analyze how much power is distributed in these regions. The distribution would tell you if you were stressed out,or have worked out, things like that. Normally, you can view spikes around LF, HF region. If you had viewed the power spectrum for the data that I sent, then that's what it pretty much looks like. I think I have said a lot about it now. Hope you get it.
We were talking about the "other component", I can't really see where it lies, must be in the 60-80 sec. range in the graph. If you look at the spectrum, I am getting a huge value around 0.0033 Hz, how do I minimize or remove this ?
Also, I am using Unevenly Spaced Signal Spectrum.vi, I am not sure what excactly is the unit for the Power Spectrum output. Technical Papers denote, Periodogram algorithm used by this VI, gives Power Spectral Density ? If that's right, then the unit is V^2/HZ.
Please advise.
Again, I should thank you for your time and effort.
I have to meet a deadline this week in finishing this project, and your help is immense to me at this point.
Thanks & Best Regards, -
How to get different sum value by different types of record in sql server
Hi,I have my query result like below
AppID LabType DiaType LabPrice DiaPrice
1
a
b 100 1000
1 a
cc 100 1000
1
aa b 100 1000
1 aa cc
100 1000
1
aaa b 100 1000
1 aaa cc 100
1000
from this query
select
app.AppointmentId,
lr.LabPrice,
lt.LabCategoryType,
drt.DiagnosisReportType,
dr.DiaPrice as diaprice,
from Appointment app
left join DiagnosisReport dr on app.AppointmentId=dr.AppointmentId
left join DiagnosisReportType drt on dr.DiagnosisReportTypeId=drt.DiagnosisReportTypeId
left join LabCategoryReport lr on lr.AppointmentId=app.AppointmentId
left join LabCategoryType lt on lt.LabCategoryTypeId=lr.LabCategoryTypeId
where app.DeleteStatus='N'
and app.AppointmentId='MLM-Appointment-60314748311012015'
and dr.DeleteStatus='N'
and lr.DeleteStatus='N'
But I want following one line result by getting two sum result for 3 different types of Lab and 2 different
type of Dia.
AppID LabPrice DiaPrice
1 300 2000
Please, can anyone give me any idea or help how to get only one record query result.
Thanks in advanced.
SupermanPlease follow basic Netiquette and post the DDL we need to answer this. Follow industry and ANSI/ISO standards in your data. You should follow ISO-11179 rules for naming data elements. You failed. You should follow ISO-8601 rules for displaying temporal
data. We need to know the data types, keys and constraints on the table. Avoid dialect in favor of ANSI/ISO Standard SQL. And you need to read and download the PDF for:
https://www.simple-talk.com/books/sql-books/119-sql-code-smells/
>> I have my query result like below <<
So you show us a result and expect that we can guess! Wow! We are magical! Did you ever read Douglas Adams? The answer is 42! Now find
the question.
Also, you have things like “lab_category_type” in this code. Is it a category or a type? In a valid data model that follow ISO-11179 rules you could have a “lab_category” or “lab_type” but never a mixed hybrid. In one of my books, I had something like “lab_category_type_id”
as a joke; it was so stinking awful that I never dreamed any programmer would really do this!
Also OUTER JOINs a rare in a valid schema. A good design will have DRI so you know you have matches. Since a table is a set, their names are plural or collective; but you have only one appointment according to your unseen DDL. And only one “Diagnosis_Report”,
etc.
Now think about “Lab_Category_Types” as a table. Regardless of how this ambiguous mess is resolved, it will be an attribute. An attribute is in a column, not an entity like you are modeling it. If it has a few static values then use a CHECK( x IN (..)) constraint.
If it is dynamic or large, then use a REFERENCES. Never use a join like this.
That silly, magical “delete_status” looks like an assembly language flag. This is what we did with tape files in the 1950's. We would have a bit in the front of records and flip it. Later a program would move the active records to a new tape. Ask yourself
why everything in the universe would share a common attribute. Such an attribute would be so generic as to be useless or (your case) it would be meta data and not part of the entity at all. Oh, rows are not records; you got that wrong too.
Why do you keep prices in integers? Currency is decimal. Sure wish we had DDL. My guess is that this should look more like this simpler, faster query.
SELECT APP.appointment_id,
LT.lab_type, LR.lab_price,
DRT.diagnosis_type, DR.diagnosis_price
FROM Appointments AS APP
LEFT OUTER JOIN
(SELECT appointment_id, diagnosis_type,
SUM(diagnosis_price) AS diagnosis_price_tot
FROM Diagnosis_Reports AS DR
GROUP BY appointment_id, diagnosis_type)
AS DR
ON APP.appointment_id = DR.appointment_id
LEFT OUTER JOIN
(SELECT appointment_id, lab_type, SUM(lab_price)lab_price_tot
FROM Lab_Reports
GROUP BY appointment_id, lab_type)
AS LR
ON APP.appointment_id = LR.appointment_id
WHERE APP.appointment_id = 'MLM-APPOINTMENT-60314748311012015';
--CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
in Sets / Trees and Hierarchies in SQL -
Why do I get different size redings?
I just noticed while looking through my iTunes music that it shows two different sizes? If I look at the "music folder" in my iTunes folder it calculates to 28.62GB, but when I open iTunes and look at the bottom it reads "2184 songs 6.8 days 19.82GB? Why the different size readings.
Also what is the best way to get rid of duplicates? I have a music folder and my wife has a music folder (on her machine) and I have two back ups of music folders from long ago that I have forgotten about on my back up drive. Whats the best way to consolidate every thing and NOT be storing a bunch of duplicates?Thanks StarDeb55:
I checked and I do have a Unknown Artist folder 1.36GB and a Unkown folder 8.4MB. They have misc music in them including a lot of old system sounds, but no movie files. I have ripped some movies but they are all in my movie fold on my local HD and my back up HD. So that accounts for about 1.44GB of space? -
Why do we get different "Save before exit" dialogs?
We have five developers with Word 2013 Professional Plus, 32-bit. When we close an unsaved document, three of us get one dialog and the other two get another.
Both dialogs ask "Want to save your changes to ...?"
One also says "If you click 'Don't Save', a recent copy of this file will be temporarily available.
Learn more".
And the program behavior is different between the two after you click "Don't Save." What do we have different?This is before ever saving the file; even with a new blank document. Two of us have checked version numbers and they are identical (Office Pro Plus 2013, 15.0.4631.1000). The others should be since most of us installed from the same corporate distribution
installer. There are some COM add-in differences, like OneNote, but their presence or absence doesn't correlate with the different dialogs.
We checked a default install on a virtual machine, and it makes the score 4 to 2, with most getting the one having the extra verbiage.
Our dilemma is that for those with the more common dialog, after clicking "Don't Save," the BeforeSave event still fires in our VSTO add-in (and there is no clue we can find that the user clicked "Don't"). For those with the other dialog,
it doesn't fire then. It seems to me that BeforeSave should not be firing if there is no Save happening.
UPDATE: Which dialog shows toggles with the state of the "Keep the last autosaved version..." checkbox in the Save options. Answer found. Now about that BeforeSave thing.......? -
Why do I get the "this value would cause one or more objects to leave the pasteboard" message when p
I'm placing images from Bridge by selecting the image or images and going to File>Place>In Indesign. This loads the cursor in ID and I attempt to click and drag a frame to size the image on the page. That's when I get the message.
Placing images into existing frames is OK, and single click to place works also. Only when I click and drag to create a new frame.
This happens every time regardless of image size, resolution or root folder location.
Any ideas? Why is ID stuck with click & drag?
iMac 2.66GHz 8GB RAM
OSX 10.8.2Try trashing your prefs. See Replace Your Preferences
-
Why do i get different photos when i hover or click on a thumbnail picture in iPhoto?
When I hover or choose a thumbnail picture in iphoto I get a completely different photo from that album. Is something corrupted?
Try to rebuild your thumbnails.
What is your iPhoto version? Assuming it is iPhoto 9.5 hold down the key combination⌥⌘ , while double clicking the iPhoto icon to launch iPhoto in First Aid mode. Keep holding the keys down, until you are seeing the First Aid panel.
Select "Rebuild Thumbnails".
If rebuilding the thumbnails does not suffice, try the "Repair dtabase" option, and finally the Rebuild database. But make sure, your update of your iPhoto library is current and working, before you try a rebuild.
-- Léonie
Maybe you are looking for
-
How do I transfer apps from iPod to iPad 2?
how do I transfer apps from iPod to iPad 2?
-
I am using OS 10.3.9 and have a few question about the dvd player application. 1. How do I get widescreen recordings to playback in widescreen on my monitor. I know my monitor is not widescreen, but the dvd window can be smaller than the screen, so i
-
Mail opens inbox of non-default account
I upgraded to OS4. When I open the Mail app it goes to the Inbox of one of my accounts that is not my default account. How do I make the main screen of the Mail app appear when I open it? Thanks!
-
wi-fi connection doesnt work, even can not put it ON. What to do? at the store guys told that they can change my iphone for 300 euros....
-
Morning Gurus, There is a new system that we want to install as pilot on our test server preoblem is we only have 800M of available space whereas we need atleast 3G. What can I delete in Oracle in order to get more space will it be the datafiles? ple