<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Aptos;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Aptos",sans-serif;
mso-ligatures:standardcontextual;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:Consolas;
color:windowtext;
font-weight:normal;
font-style:normal;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:11.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:14.0pt;font-family:Consolas">Hi Matt,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt;font-family:Consolas"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt;font-family:Consolas">There is a system table where you can look for serial number fields in tables (Travelers). The ALL_TAB_COLUMNS table has a lot of information about the tables and columns, but we are
only interested in a few, Owner, Table_Name, and Column_Name. I put together a sample query to, hopefully, get things started. Depending on the Traveler area, CAV, CST, or CM, you will be ably to get some of the serial numbers for a specific Cryomodule.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt;font-family:Consolas"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt;font-family:Consolas">Again this is a starting point, and will take more work to link cavities to the cryomodule that they went into or get the feedthrus on those cavities. I did some of that work for the
PRIMeS/InspectionStatus.cfm report page.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt;font-family:Consolas"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt;font-family:Consolas">For the query below, copy/paste into SQL Developer, Traveler DB, and RUN it. Under the current conditions, it will get a few non-serial number fields like, Wavegu<u>id</u>e…<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt;font-family:Consolas"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt;font-family:Consolas">// ALL Tables and Columns with "SN' or 'ID' in them from the C100 project
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt;font-family:Consolas"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt;font-family:Consolas">select table_name AS "Tables", column_name "VarName"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt;font-family:Consolas">FROM all_tab_columns
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt;font-family:Consolas">where owner = upper('ADAPPS')<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt;font-family:Consolas">and (column_name LIKE '%SN%' or column_name LIKE '%ID%')<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt;font-family:Consolas">and table_name LIKE 'C100%ASSY%'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt;font-family:Consolas">and table_name NOT LIKE 'C100R%'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt;font-family:Consolas">order by table_name, column_name;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt;font-family:Consolas"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt;font-family:Consolas">Let me know if you have any questions,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt;font-family:Consolas"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:Consolas;color:black;mso-ligatures:none">Mike Dickey<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:Consolas;color:black;mso-ligatures:none">SRF Inventory Technician<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:Consolas;color:black;mso-ligatures:none">Jefferson Lab<br>
12000 Jefferson Ave<br>
Newport News, VA 23606<br>
(757) 269-7755</span><span style="font-size:12.0pt;font-family:Consolas;mso-ligatures:none"><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>