Congratulations!

[Valid Atom 1.0] This is a valid Atom 1.0 feed.

Recommendations

This feed is valid, but interoperability with the widest range of feed readers could be improved by implementing the following recommendations.

Source: http://tamilprogramminng.blogspot.com/feeds/posts/default

  1. <?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3691376985285892436</id><updated>2024-02-21T21:56:28.612-08:00</updated><title type='text'>Tamil Software Programms</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://tamilprogramminng.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3691376985285892436/posts/default'/><link rel='alternate' type='text/html' href='http://tamilprogramminng.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/3691376985285892436/posts/default?start-index=26&amp;max-results=25'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>45</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3691376985285892436.post-8932859467994801689</id><published>2013-11-07T19:59:00.001-08:00</published><updated>2013-11-07T19:59:06.050-08:00</updated><title type='text'>விண்டோஸ் அட்மின் பாஸ்வேர்டை மாற்றி அமைக்க</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
  2. &lt;br /&gt;
  3. &lt;br /&gt;
  4. &lt;div class=&quot;separator&quot; style=&quot;background-color: white; clear: left; color: #555555; float: left; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; margin-bottom: 1em; margin-right: 1em; text-align: center;&quot;&gt;
  5. &lt;img border=&quot;0&quot; height=&quot;241&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjv7QSBfnS1-9-3gxjLlYfpysdtBnx2JiMwj86E9mpl9tt2rOkkC_vtt0G1kKS9jJGUEGUkyIam6c1KNt4qoo-o4N5qW91YPH4PwYYZjthIlohEWz3KYuszpu5ynGBwsZKeGl3zsBR0MRYl/s320/windows_xp_password.jpg&quot; style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: none; padding: 0px;&quot; width=&quot;320&quot; /&gt;&lt;/div&gt;
  6. &lt;div style=&quot;background-color: white; color: #555555; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  7. &lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;ஆப்லைன் என்.டி. பாஸ்வேர்ட் - ரெஜிஸ்ட்ரி எடிட்டர் (Offline NT Password &amp;amp; Registry Editor ) என்னும் டூலைப் பயன்படுத்தி, கம்ப்யூட்டர் சிஸ்டம் ஒன்றின், அட்மினிஸ்ட்ரேட்டர் பாஸ்வேர்டினை மாற்றி அமைக்கலாம்.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  8. &lt;div style=&quot;background-color: white; color: #555555; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  9. &lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  10. &lt;div style=&quot;background-color: white; color: #555555; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  11. &lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;இது ஓப்பன் சோர்ஸ் எனப்படும் திறவூற்று வகையில் அமைக்கப்பட்ட புரோகிராம் என்பதால், இணையத்தில் இலவசமாகவே கிடைக்கிறது. இது பழைய பாஸ்வேர்டினை முழுமையாக அழிக்கிறது.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  12. &lt;div style=&quot;background-color: white; color: #555555; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  13. &lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  14. &lt;div style=&quot;background-color: white; color: #555555; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  15. &lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;எனவே, விண்டோஸ் சிஸ்டம் செல்ல வேண்டியதில்லை. இது எந்தப் பிரச்னையும் இன்றி, விண்டோஸ் எக்ஸ்.பி., விஸ்டா மற்றும் விண்டோஸ் 7 சிஸ்டங்களில் செயல்படுகிறது.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  16. &lt;div style=&quot;background-color: white; color: #555555; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  17. &lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  18. &lt;div style=&quot;background-color: white; color: #555555; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  19. &lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;இவற்றின் 64 பிட் பதிப்புகளிலும் செயல்படுகிறது. இதற்கு&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://pogostick.net/~pnh/ntpasswd/&quot; style=&quot;border: 0px none; color: #3e9599; line-height: 19px; margin: 0px; outline: none; padding: 0px; text-decoration: none !important;&quot;&gt;http://pogostick.net/~pnh/ntpasswd/&lt;/a&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;என்ற முகவரியில் உள்ள இணையதளம் செல்லவும்.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  20. &lt;div style=&quot;background-color: white; color: #555555; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  21. &lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  22. &lt;div style=&quot;text-align: justify;&quot;&gt;
  23. 1. முதலில் இந்த இணைய தளம் சென்று, ”How to get it?” பிரிவில், Password reset CD/USB bootdisk: Instructions image என்பதனைக் கண்டறிந்து கிளிக் செய்திடவும். மீண்டும் கீழாகச் சென்று cd110511.zip என்ற பைலைத் தரவிறக்கம் செய்திடவும். இது ஏறத்தாழ 3 எம்.பி. அளவுள்ள பைலாகும்.&amp;nbsp;&lt;/div&gt;
  24. &lt;div style=&quot;text-align: justify;&quot;&gt;
  25. &lt;/div&gt;
  26. &lt;div style=&quot;text-align: justify;&quot;&gt;
  27. 2. இந்த ஸிப் பைலில் இருந்து, ஐ.எஸ்.ஓ. பைலை எக்ஸ்ட்ராக்ட் செய்திடவும். இந்த பைலை, டிஸ்க் ஒன்றில் பதியவும்.&amp;nbsp;&lt;/div&gt;
  28. &lt;div style=&quot;text-align: justify;&quot;&gt;
  29. &lt;/div&gt;
  30. &lt;div style=&quot;text-align: justify;&quot;&gt;
  31. 3. அடுத்து, இந்த சிடியினைப் பயன்படுத்தி, உங்கள் கம்ப்யூட்டரை இயக்கவும்.&amp;nbsp;&lt;/div&gt;
  32. &lt;div style=&quot;text-align: justify;&quot;&gt;
  33. &lt;/div&gt;
  34. &lt;div style=&quot;text-align: justify;&quot;&gt;
  35. 4. பூட் கட்டளைப் புள்ளி தோன்றுகையில், எண்டர் அழுத்தவும். புரோகிராம் லோட் ஆகும் வரையில் காத்திருக்கவும்.&amp;nbsp;&lt;/div&gt;
  36. &lt;div style=&quot;text-align: justify;&quot;&gt;
  37. &lt;/div&gt;
  38. &lt;div style=&quot;text-align: justify;&quot;&gt;
  39. 5. உங்கள் கம்ப்யூட்டரின் ஹார்ட் ட்ரைவின் அனைத்து பகுதிகளையும் நீங்கள் இங்கு காணலாம். இங்கு, விண்டோஸ் லோட் ஆகி உள்ள ஹார்ட் ட்ரைவின் பகுதியினைத் தேர்ந்தெடுக்கவும். பொதுவாக, மாறா நிலையில், இதுவே முதலாவதாக இருக்கும். இதில் எண்டர் அழுத்தவும்.&amp;nbsp;&lt;/div&gt;
  40. &lt;div style=&quot;text-align: justify;&quot;&gt;
  41. &lt;/div&gt;
  42. &lt;div style=&quot;text-align: justify;&quot;&gt;
  43. 6. விண்டோஸ் ரெஜிஸ்ட்ரி உள்ள இடத்தின் சரியான இடம் பெறவும். மாறா நிலையில், இது Windows/System32/config என்ற பிரிவில் இருக்கும். மீண்டும் எண்டர் அழுத்தவும்.&lt;/div&gt;
  44. &lt;div style=&quot;text-align: justify;&quot;&gt;
  45. &lt;/div&gt;
  46. &lt;div style=&quot;text-align: justify;&quot;&gt;
  47. 7. அடுத்து, Password reset [sam system security] என்ற ஆப்ஷனைத் தேர்ந்தெடுக்கவும். எண்டர் அழுத்தவும்.&lt;/div&gt;
  48. &lt;div style=&quot;text-align: justify;&quot;&gt;
  49. &lt;/div&gt;
  50. &lt;div style=&quot;text-align: justify;&quot;&gt;
  51. 8. பாஸ்வேர்ட் ரீசெட் செய்வதற்கான யூசர் நேம் டைப் செய்திடவும். மீண்டும் எண்டர் தட்டவும்.&lt;/div&gt;
  52. &lt;div style=&quot;text-align: justify;&quot;&gt;
  53. &lt;/div&gt;
  54. &lt;div style=&quot;text-align: justify;&quot;&gt;
  55. 9. இங்கு யூசர் பாஸ்வேர்டினை நீக்கிட, 1 என்ற ஆப்ஷனைத் தேர்ந்தெடுக்கவும். எண்டர் அழுத்தவும்.&lt;/div&gt;
  56. &lt;div style=&quot;text-align: justify;&quot;&gt;
  57. &lt;/div&gt;
  58. &lt;div style=&quot;text-align: justify;&quot;&gt;
  59. 10. மேலே காட்டப்பட்டுள்ள அனைத்தையும் எந்த தவறும் இல்லாமல் மேற்கொண்டால், ஒரு உறுதி செய்வதற்கான மெசேஜ் ஒன்று காட்டப்படும். மீண்டும் இப்போது ! யை டைப் செய்து, எடிட்டிங் பணியிலிருந்து வெளியேற எண்டர் தட்டவும்.&lt;/div&gt;
  60. &lt;div style=&quot;text-align: justify;&quot;&gt;
  61. &lt;/div&gt;
  62. &lt;div style=&quot;text-align: justify;&quot;&gt;
  63. 11. அடுத்து q அழுத்தி புரோகிராமில் இருந்து வெளியேற எண்டர் அழுத்தவும்.&amp;nbsp;&lt;/div&gt;
  64. &lt;div style=&quot;text-align: justify;&quot;&gt;
  65. &lt;/div&gt;
  66. &lt;div style=&quot;text-align: justify;&quot;&gt;
  67. 12. அடுத்து y என அழுத்தி, அனைத்து மாற்றங்களையும் நிரந்தரமாக வைத்துக் கொள்ள உறுதி செய்திடவும். எண்டர் அழுத்தவும்.&lt;/div&gt;
  68. &lt;div style=&quot;text-align: justify;&quot;&gt;
  69. &lt;/div&gt;
  70. &lt;div style=&quot;text-align: justify;&quot;&gt;
  71. 13. மீண்டும் புரோகிராம் செல்ல விருப்பம் இல்லை என்பதனைத் தெரிவிக்க, எண்டர் அழுத்தவும்.&lt;/div&gt;
  72. &lt;div style=&quot;text-align: justify;&quot;&gt;
  73. &lt;/div&gt;
  74. &lt;span style=&quot;background-color: white; color: #555555; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  75. &lt;div style=&quot;text-align: justify;&quot;&gt;
  76. 14. இனி, டிஸ்க்கினை நீக்கி, கம்ப்யூட்டரை ரீஸ்டார்ட் செய்திடவும். இனி, பாஸ்வேர்ட் எதுவும் தராமல், உங்களால், லாக் இன் செய்திட முடியும்.&lt;/div&gt;
  77. &lt;/div&gt;
  78. </content><link rel='replies' type='application/atom+xml' href='http://tamilprogramminng.blogspot.com/feeds/8932859467994801689/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tamilprogramminng.blogspot.com/2013/11/blog-post.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3691376985285892436/posts/default/8932859467994801689'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3691376985285892436/posts/default/8932859467994801689'/><link rel='alternate' type='text/html' href='http://tamilprogramminng.blogspot.com/2013/11/blog-post.html' title='விண்டோஸ் அட்மின் பாஸ்வேர்டை மாற்றி அமைக்க'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjv7QSBfnS1-9-3gxjLlYfpysdtBnx2JiMwj86E9mpl9tt2rOkkC_vtt0G1kKS9jJGUEGUkyIam6c1KNt4qoo-o4N5qW91YPH4PwYYZjthIlohEWz3KYuszpu5ynGBwsZKeGl3zsBR0MRYl/s72-c/windows_xp_password.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3691376985285892436.post-7406934568444607046</id><published>2013-09-15T20:56:00.001-07:00</published><updated>2013-09-15T20:56:08.185-07:00</updated><title type='text'>கட்டாயம் வைத்திருக்க வேண்டிய இலவச மென்பொருட்கள்</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
  79. &lt;h5 class=&quot;uiStreamMessage userContentWrapper&quot; data-ft=&quot;{&amp;quot;type&amp;quot;:1,&amp;quot;tn&amp;quot;:&amp;quot;K&amp;quot;}&quot; style=&quot;background-color: white; font-family: &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 11px; font-weight: normal; line-height: 14px; margin: 0px 0px 5px; padding: 0px; word-break: break-word; word-wrap: break-word;&quot;&gt;
  80. &lt;span class=&quot;messageBody&quot; data-ft=&quot;{&amp;quot;type&amp;quot;:3,&amp;quot;tn&amp;quot;:&amp;quot;K&amp;quot;}&quot; style=&quot;color: #333333; font-size: 13px; line-height: 1.38;&quot;&gt;மென்பொருட்கள் இல்லாமல் நாம் கணினியை பயன்படுத்தவே முடியாது. நம்முடைய அத்தனை செயல்களும் ஏதோ ஒரு மென்பொருளை சார்ந்தே இருக்கும். இதில் நிறைய மென்பொருட்கள் நமக்கு இலவசமாகவே கிடைக்கின்றன. அதில் சில நமக்கு கட்டாயம் தேவைப்படும் அவற்றைப் பற்றி பார்ப்போம்.&lt;span class=&quot;text_exposed_show&quot; style=&quot;display: inline;&quot;&gt;&lt;br /&gt;&lt;br /&gt;~~Browser~~&lt;br /&gt;&lt;br /&gt;ப்ரௌசர் என்பது இல்லாமல் நீங்கள் இப்போது இந்த பதிவை படிக்க முடியாது. இணையத்தில் நாம் செயல்பட ப்ரௌசர் ஒரு கட்டாய தேவை. இதில் சிறந்த இரண்டு.&lt;br /&gt;&lt;br /&gt;1. Chrome -&amp;nbsp;&lt;a href=&quot;http://goo.gl/j11of&quot; rel=&quot;nofollow nofollow&quot; style=&quot;color: #3b5998; cursor: pointer; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;http://goo.gl/j11of&lt;/a&gt;&lt;br /&gt;2. Firefox -&amp;nbsp;&lt;a href=&quot;http://goo.gl/7ICv2&quot; rel=&quot;nofollow nofollow&quot; style=&quot;color: #3b5998; cursor: pointer; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;http://goo.gl/7ICv2&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;~~Antivirus~~&lt;br /&gt;&lt;br /&gt;அடிக்கடி பென்டிரைவ் அல்லது இணையத்தில் இருந்து டவுன்லோட் செய்யும் போது நம் கணினியில் வைரஸ் வர வாய்ப்பு உள்ளது. அம்மாதிரியான தருணங்களில் அவற்றை தடுக்கவோ அல்லது தவிர்க்கவோ ஒரு ஆண்டி வைரஸ் மென்பொருள் தேவை. அவற்றில் சிறந்த இரண்டு.&lt;br /&gt;&lt;br /&gt;1. Avast -&amp;nbsp;&lt;a href=&quot;http://goo.gl/8Br5g&quot; rel=&quot;nofollow nofollow&quot; style=&quot;color: #3b5998; cursor: pointer; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;http://goo.gl/8Br5g&lt;/a&gt;&lt;br /&gt;2. Microsoft Security Essentials -&amp;nbsp;&lt;a href=&quot;http://goo.gl/YDpJ7&quot; rel=&quot;nofollow nofollow&quot; style=&quot;color: #3b5998; cursor: pointer; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;http://goo.gl/YDpJ7&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;~~File Compression Software~~&lt;br /&gt;&lt;br /&gt;File Compression Software என்பது நாம் அடிக்கடி பயன்படுத்தும் ஒன்று. இதில் winzip மற்றும் winrar போன்றவை கட்டண மென்பொருட்கள். இதை செய்ய சிறந்த இலவச மென்பொருட்கள்.&lt;br /&gt;&lt;br /&gt;1. 7-Zip -&amp;nbsp;&lt;a href=&quot;http://www.facebook.com/l.php?u=http%3A%2F%2Fgoo.gl%2FCHqRw&amp;amp;h=-AQGjzylrAQH2Qjq1kRQQAPeEoFIfQnt2-Guvi3PNN4kjog&amp;amp;s=1&quot; rel=&quot;nofollow nofollow&quot; style=&quot;color: #3b5998; cursor: pointer; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;http://goo.gl/CHqRw&lt;/a&gt;&lt;br /&gt;2. Zip2Fix -&amp;nbsp;&lt;a href=&quot;http://goo.gl/y1m9E&quot; rel=&quot;nofollow nofollow&quot; style=&quot;color: #3b5998; cursor: pointer; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;http://goo.gl/y1m9E&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;~~Image/Graphics editor, paint program, and picture organizer~~&lt;br /&gt;&lt;br /&gt;இமேஜ் எடிட்டர் என்பது நமக்கு அடிக்கடி தேவைப்படும் ஒன்று. இதில் பெரும்பாலான மென்பொருட்கள் நமக்கு இலவசமாக கிடைப்பது இல்லை. ஆனால் சில நமக்கு இலவசமாக பல வசதிகளை தருகின்றன. அவற்றில் சிறந்தவை.&lt;br /&gt;&lt;br /&gt;1. Gimpshop -&amp;nbsp;&lt;a href=&quot;http://goo.gl/UK9s&quot; rel=&quot;nofollow nofollow&quot; style=&quot;color: #3b5998; cursor: pointer; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;http://goo.gl/UK9s&lt;/a&gt;&lt;br /&gt;2. Paint.NET -&amp;nbsp;&lt;a href=&quot;http://goo.gl/59FB&quot; rel=&quot;nofollow nofollow&quot; style=&quot;color: #3b5998; cursor: pointer; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;http://goo.gl/59FB&lt;/a&gt;&lt;br /&gt;3. IrfanView -&amp;nbsp;&lt;a href=&quot;http://goo.gl/59FB&quot; rel=&quot;nofollow nofollow&quot; style=&quot;color: #3b5998; cursor: pointer; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;http://goo.gl/59FB&lt;/a&gt;&lt;br /&gt;4. Inkscape -&amp;nbsp;&lt;a href=&quot;http://goo.gl/q6Sh&quot; rel=&quot;nofollow nofollow&quot; style=&quot;color: #3b5998; cursor: pointer; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;http://goo.gl/q6Sh&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;~~Multimedia~~&lt;br /&gt;&lt;br /&gt;கணினியில் ஓய்வு நேரங்களில் நாம் செய்வது பாடல்கள் கேட்பது மற்றும் படங்கள் பார்ப்பது. அத்தோடு Video Editor, Video Converter போன்றவை தொழில்ரீதியாக உள்ள Multimedia Tools. இதில் சிறந்த இலவச மென்பொருட்கள்.&lt;br /&gt;&lt;br /&gt;1. VLC media player -&amp;nbsp;&lt;a href=&quot;http://www.facebook.com/l.php?u=http%3A%2F%2Fgoo.gl%2FoRNqK&amp;amp;h=WAQFEYWelAQHSRaQ2Shci7S9dYgWKMI2xf9CjOnqZPJhTvg&amp;amp;s=1&quot; rel=&quot;nofollow nofollow&quot; style=&quot;color: #3b5998; cursor: pointer; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;http://goo.gl/oRNqK&lt;/a&gt;&lt;br /&gt;2. KM Player -&amp;nbsp;&lt;a href=&quot;http://goo.gl/VMzX7&quot; rel=&quot;nofollow nofollow&quot; style=&quot;color: #3b5998; cursor: pointer; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;http://goo.gl/VMzX7&lt;/a&gt;&lt;br /&gt;3. Audacity – Free Audio Editor -&amp;nbsp;&lt;a href=&quot;http://www.facebook.com/l.php?u=http%3A%2F%2Fgoo.gl%2FARs0&amp;amp;h=jAQHane1dAQELjUiSJzxNCuHmeACwAb_QlxdlrjjgfRlt8g&amp;amp;s=1&quot; rel=&quot;nofollow nofollow&quot; style=&quot;color: #3b5998; cursor: pointer; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;http://goo.gl/ARs0&lt;/a&gt;&lt;br /&gt;4. Avidemux – Free Video Editor -&amp;nbsp;&lt;a href=&quot;http://www.facebook.com/l.php?u=http%3A%2F%2Fgoo.gl%2FUzr2n&amp;amp;h=KAQGV66t9AQElJSCpOVwUA3ueFNfm3qR5N67bUHHUS6b2SQ&amp;amp;s=1&quot; rel=&quot;nofollow nofollow&quot; style=&quot;color: #3b5998; cursor: pointer; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;http://goo.gl/Uzr2n&lt;/a&gt;&lt;br /&gt;5. DVD Video Soft -&amp;nbsp;&lt;a href=&quot;http://www.facebook.com/l.php?u=http%3A%2F%2Fgoo.gl%2Fw6Hhj&amp;amp;h=EAQGD-yQ0AQG82FwqyvbQh84u4CLEdfPjt4KOBR0lBccxKg&amp;amp;s=1&quot; rel=&quot;nofollow nofollow&quot; style=&quot;color: #3b5998; cursor: pointer; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;http://goo.gl/w6Hhj&lt;/a&gt;&lt;br /&gt;6. Free Make Video Converter -&amp;nbsp;&lt;a href=&quot;http://www.facebook.com/l.php?u=http%3A%2F%2Fgoo.gl%2FHyb9J&amp;amp;h=8AQEv2vz6AQGBFi6kzKsg8Q3dJ_KSj-IW5dRnfpCygu0fMQ&amp;amp;s=1&quot; rel=&quot;nofollow nofollow&quot; style=&quot;color: #3b5998; cursor: pointer; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;http://goo.gl/Hyb9J&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;~~~Office Tools~~&lt;br /&gt;&lt;br /&gt;MS Office க்கு மாற்றாக பல இலவச மென்பொருட்கள் உள்ளன. அவற்றில் சிறந்தவை.&lt;br /&gt;&lt;br /&gt;1. MS Officeக்கு மாற்றாக சில இலவச மென்பொருட்கள் -&lt;a href=&quot;http://goo.gl/XuiAM&quot; rel=&quot;nofollow nofollow&quot; style=&quot;color: #3b5998; cursor: pointer; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;http://goo.gl/XuiAM&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h5&gt;
  81. &lt;h5 class=&quot;uiStreamMessage userContentWrapper&quot; data-ft=&quot;{&amp;quot;type&amp;quot;:1,&amp;quot;tn&amp;quot;:&amp;quot;K&amp;quot;}&quot; style=&quot;background-color: white; font-family: &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 11px; font-weight: normal; line-height: 14px; margin: 0px 0px 5px; padding: 0px; word-break: break-word; word-wrap: break-word;&quot;&gt;
  82. &lt;div class=&quot;mvm uiStreamAttachments fbMainStreamAttachment&quot; data-ft=&quot;{&amp;quot;type&amp;quot;:10,&amp;quot;tn&amp;quot;:&amp;quot;H&amp;quot;}&quot; style=&quot;color: #333333; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
  83. &lt;div class=&quot;clearfix photoRedesign&quot; style=&quot;width: 398px; zoom: 1;&quot;&gt;
  84. &lt;a ajaxify=&quot;https://www.facebook.com/photo.php?fbid=626772577353395&amp;amp;set=a.295437630486893.76949.293309174033072&amp;amp;type=1&amp;amp;relevant_count=1&amp;amp;ref=nf&amp;amp;src=https%3A%2F%2Ffbcdn-sphotos-c-a.akamaihd.net%2Fhphotos-ak-prn2%2F1240543_626772577353395_454400939_n.jpg&amp;amp;size=681%2C720&amp;amp;source=12&quot; class=&quot;uiPhotoThumb photoRedesignAspect&quot; data-ft=&quot;{&amp;quot;type&amp;quot;:41,&amp;quot;tn&amp;quot;:&amp;quot;E&amp;quot;}&quot; href=&quot;https://www.facebook.com/photo.php?fbid=626772577353395&amp;amp;set=a.295437630486893.76949.293309174033072&amp;amp;type=1&amp;amp;relevant_count=1&amp;amp;ref=nf&quot; rel=&quot;theater&quot; style=&quot;border: 0px; color: #3b5998; cursor: pointer; display: block; float: left; position: relative; text-decoration: none;&quot; title=&quot;&quot;&gt;&lt;div class=&quot;uiScaledImageContainer photoWrap&quot; style=&quot;height: 338px; overflow: hidden; position: relative; width: 320px;&quot; title=&quot;&quot;&gt;
  85. &lt;img alt=&quot;&quot; class=&quot;scaledImageFitWidth img&quot; height=&quot;338&quot; src=&quot;https://fbcdn-sphotos-c-a.akamaihd.net/hphotos-ak-prn2/p320x320/1240543_626772577353395_454400939_n.jpg&quot; style=&quot;border: 0px; display: block; height: auto; margin: 0px; max-width: none; min-height: 100%; position: relative; width: 320px;&quot; title=&quot;&quot; width=&quot;320&quot; /&gt;&lt;/div&gt;
  86. &lt;/a&gt;&lt;/div&gt;
  87. &lt;/div&gt;
  88. &lt;/h5&gt;
  89. &lt;/div&gt;
  90. </content><link rel='replies' type='application/atom+xml' href='http://tamilprogramminng.blogspot.com/feeds/7406934568444607046/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tamilprogramminng.blogspot.com/2013/09/blog-post.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3691376985285892436/posts/default/7406934568444607046'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3691376985285892436/posts/default/7406934568444607046'/><link rel='alternate' type='text/html' href='http://tamilprogramminng.blogspot.com/2013/09/blog-post.html' title='கட்டாயம் வைத்திருக்க வேண்டிய இலவச மென்பொருட்கள்'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3691376985285892436.post-5861097863378326499</id><published>2013-08-08T04:59:00.000-07:00</published><updated>2013-08-08T04:59:02.565-07:00</updated><title type='text'>எளிய தமிழில் SQL - பாகம் 16</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
  91. &lt;h3 class=&quot;post-title entry-title&quot; style=&quot;background-color: white; font-family: Times, serif; font-size: 31px; font-weight: normal; line-height: 1.4em; margin: 0px; padding: 0px;&quot;&gt;
  92. &lt;span style=&quot;font-family: Georgia, Times, serif; font-size: 13px; line-height: 20.984375px; text-align: justify;&quot;&gt;இன்றைய பாகம்-16ல் SQL ன் Aggregate Functions மற்றும், Grouping போன்றவற்றைக் காணலாம்.&lt;/span&gt;&lt;/h3&gt;
  93. &lt;div class=&quot;post-body entry-content&quot; style=&quot;background-color: white; font-family: Georgia, Times, serif; font-size: 13px; line-height: 20.984375px; margin: 0px; padding: 0px; text-align: justify;&quot;&gt;
  94. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இதற்கான ஒரு மாதிரி Table Structure கீழே:&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipxWBllh1rvjeef0jCeT5SkcF_ck2VICq5hI3eqJxSx5bJJj472zpowrd72tEKWKsRLhXssIoCCkT-TRV4njhxC3VQGE4JIzeR7vx1qlm5SmcGaU4jYctm82Nih_6TfLL0tV_Dv31oT-s3/s1600-h/sampletablestructure.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5302083641128054290&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipxWBllh1rvjeef0jCeT5SkcF_ck2VICq5hI3eqJxSx5bJJj472zpowrd72tEKWKsRLhXssIoCCkT-TRV4njhxC3VQGE4JIzeR7vx1qlm5SmcGaU4jYctm82Nih_6TfLL0tV_Dv31oT-s3/s320/sampletablestructure.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 76px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 320px;&quot; /&gt;&lt;/a&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இந்த Table ஐப் பயன்படுத்தி இன்றையப் பாகத்தைத் தொடருவோம்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;Aggregate Functions என்றால் என்ன?&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;SUM, AVG, MIN, MAX, COUNT போன்றவற்றைப் பயன்படுத்தி கணித விடை காணல். இதன் விடையாக ஒரே ஒரு மதிப்பு மட்டும் வெளியாகும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjL-hWYunnLCn4so7b4SvYXTspTulPHFLPs5xzjqaK45mFaXlyav1KsXfTXlh_-GdxMLJeNINDMJDNPEGBdxtwJIzXKvIc0cRzyUV5y4hVZKOS2JDb65NbrEJoqVeHITGhcVX6657k6VQ9y/s1600-h/sampledata.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5302085388160541634&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjL-hWYunnLCn4so7b4SvYXTspTulPHFLPs5xzjqaK45mFaXlyav1KsXfTXlh_-GdxMLJeNINDMJDNPEGBdxtwJIzXKvIc0cRzyUV5y4hVZKOS2JDb65NbrEJoqVeHITGhcVX6657k6VQ9y/s320/sampledata.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 320px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 301px;&quot; /&gt;&lt;/a&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இந்த Tableல் மணி, வீரன், சந்த்ரு, ஹாரிஸ் ஆகிய 3 விற்பனையாளர்களும் வெவ்வேறு காலகட்டங்களில் வேறு வேறு பகுதிகளில் எவ்வளவு தொகைக்கு விற்பனை செய்துள்ளனர் என்பதை அறியக் கொடுத்துள்ளேன்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;அனைவரும் சேர்ந்து ஒட்டுமொத்தமாக எவ்வளவு தொகைக்குப் பொருட்களை விற்பனை செய்துள்ளனர். இதற்கு SUM பயன்படுத்தலாம்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;ஒட்டுமொத்தமான கூடுதல் தொகை.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;SELECT SUM(SaleAmount) AS [Total Sale Amount] from Sales&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;விடை : 59310&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;அதிகபட்சமாக விற்பனையான தொகை&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;SELECT MAX(SaleAmount) AS [Maximum] from Sales&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;விடை : 7800&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;குறைந்தபட்சமாக விற்பனையான தொகை&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;SELECT MIN(SaleAmount) AS [Minimum] from Sales&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;விடை : 400&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;சராசரித் தொகை&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;SELECT AVG(SaleAmount) AS [Average] from Sales&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;விடை : 3954.000000&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;மொத்தத்தில் எத்தனை முறை விற்பனை நடந்துள்ளது?&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;SELECT count(*) AS [Total Transactions] from Sales&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;விடை : 15&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;மொத்தம் எத்தனை விற்பனையாளர்கள் ?&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;SELECT COUNT(DISTINCT SalesMan)AS [Total Persons Involved] FROM Sales&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;விடை:4&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இங்கே மாதிரி Tableல் ஒவ்வொரு பிரதிநிதிகளும், ஒன்றுக்கு மேற்பட்டமுறை விற்பனை செய்துள்ளனர். ஆதலால் ஒவ்வொரு பிரதிநிதியின் தனிப்பட்ட கூடுதல், அதிகபட்ச / குறைந்தபட்ச விற்பனைத்தொகை முதலியவற்றைக் காண்பதற்கு GROUP BY பயன்படுத்தலாம்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;ஒவ்வொருவரின் தனிப்பட்ட விற்பனைத்தொகையைக் காண&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;SELECT SalesMan,SUM(SaleAmount) as [Individual SaleAmount]&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;FROM Sales GROUP BY SalesMan&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;விடை :&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitT1nqChvYY0iIfdzI-ROys4ty3ODdDkR5RNCbYA-v96wZ-63hynogxq1RLPSfwEprfgJYAX1744a6jzDPWDWP7JOVj2V2KaklJEet4vrSdugwIjLZXH-NtjCXx4MnIWZAcNAzBzmkN3Al/s1600-h/sumgroup.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5302090531982722770&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitT1nqChvYY0iIfdzI-ROys4ty3ODdDkR5RNCbYA-v96wZ-63hynogxq1RLPSfwEprfgJYAX1744a6jzDPWDWP7JOVj2V2KaklJEet4vrSdugwIjLZXH-NtjCXx4MnIWZAcNAzBzmkN3Al/s320/sumgroup.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 96px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 184px;&quot; /&gt;&lt;/a&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;ஒவ்வொருவரின் அதிகபட்ச விற்பனைத்தொகையைக் காண்பதற்கு&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;SELECT SalesMan,MAX(SaleAmount) as [Individual Max Efficiency]&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;FROM Sales GROUP BY SalesMan&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhP5_aKS-HO5mwYuBSUcPP8VR5Yi9XtCpG83Ne_TlhGD5O8wbQvpY_GHsE73cbdHi7-SCqqkMflvt_fpAEigKEyLrigSg_xuDZY037IsZnUhY8HJ0NzkTQK7iS68INx6Rh7Gdwhi5qhmT83/s1600-h/maxeffibyeach.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5302091050922586082&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhP5_aKS-HO5mwYuBSUcPP8VR5Yi9XtCpG83Ne_TlhGD5O8wbQvpY_GHsE73cbdHi7-SCqqkMflvt_fpAEigKEyLrigSg_xuDZY037IsZnUhY8HJ0NzkTQK7iS68INx6Rh7Gdwhi5qhmT83/s320/maxeffibyeach.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 94px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 191px;&quot; /&gt;&lt;/a&gt;ஒவ்வொருவரின் குறைந்தபட்ச திறனைக் காண&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;SELECT SalesMan,MIN(SaleAmount) as [Individual Min Amt] FROM Sales GROUP BY SalesMan&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibJjqN0x_6Njjb7GGTjPg1y6TJftQsiYYiQGdNVTR2jAUZWL3OOGXEnPGp8ml2g_LMVdzxeWV0NrZs46yZy0_BJGfpARwRIbV0dZGs5ap8ICD6CXNPmTlej4gNGmWRAd6RI3w4nOsUhK_d/s1600-h/mineff.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5302091609990158130&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibJjqN0x_6Njjb7GGTjPg1y6TJftQsiYYiQGdNVTR2jAUZWL3OOGXEnPGp8ml2g_LMVdzxeWV0NrZs46yZy0_BJGfpARwRIbV0dZGs5ap8ICD6CXNPmTlej4gNGmWRAd6RI3w4nOsUhK_d/s320/mineff.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 96px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 163px;&quot; /&gt;&lt;/a&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;SELECT உடன் மேலும் அதிகமான கட்டுப்பாடுகளை விதிப்பதற்கும் Conditionகளைக் கூறுவதற்கும் WHERE சேர்த்துப் பயன்படுத்துவோம். அதுபோல இங்கே Aggregate Functions பயன்படுத்தும்போது HAVING ஐ இணைத்துப் பயன்படுத்துவோம்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;விற்பனைப் பிரதிநிதிகளின் இரண்டாவது எழுத்து &#39;a&#39; ஆக உள்ளவர்களையும், அவர்களது ஒட்டுமொத்த விற்றதொகையையும் காண&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;SELECT SalesMan,SUM(SaleAmount) as [Individual SaleAmount]&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;FROM Sales GROUP BY SalesMan&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;HAVING SalesMan LIKE &#39;_a%&#39;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDSl_xs-5UUlxmLs1n0ScFpQYTXRsSI1OO2CK1Advo56A8NfeqCk5N7tk9cQ8TrySYu8av_pVtF3YJpSJlpQAs4yQ6wYyooOPgDli60fSZg6tyKaAdcyBx72rQvgpcSLQQPbof9rkJW1QP/s1600-h/secondLetterA.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5302092944195608578&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDSl_xs-5UUlxmLs1n0ScFpQYTXRsSI1OO2CK1Advo56A8NfeqCk5N7tk9cQ8TrySYu8av_pVtF3YJpSJlpQAs4yQ6wYyooOPgDli60fSZg6tyKaAdcyBx72rQvgpcSLQQPbof9rkJW1QP/s320/secondLetterA.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 57px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 181px;&quot; /&gt;&lt;/a&gt;_ மற்றும் % ஆகிய அடையாளங்களுக்கு Wild card characters என்று பெயர். அதாவது இட நிரப்பிகள். _ என்பது ஒரு எழுத்தை மட்டும் நிரப்பும். % என்பது அனைத்து எழுத்துகளையும் நிரப்பும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;‘_a%&#39; என்றால் முதல் எழுத்து ஏதோ ஒன்றாகவும், கண்டிப்பாக இரண்டாம் எழுத்து &#39;a&#39; பிற எழுத்துகளைப் பற்றிக் கவலையில்லை. இப்படி எந்த பிரதிநிதியின் பெயரில் இரண்டாவது எழுத்து &#39;a&#39; வருகிறதோ அவர்களை மட்டும் காண்பதற்கு.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;ஒட்டுமொத்தத்தில் 20000 ஐ விட அதிகமாக விற்பனை செய்தவர்களை மட்டும் காண்பதற்கு:&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;SELECT SalesMan, SUM(SaleAmount) as [Individual SaleAmount] FROM Sales&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;GROUP BY SalesMan&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;HAVING SUM(SaleAmount) &amp;gt; 20000&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzXi5PA1yCQDGLODILNx1AysVzvlVTaD1ukpsk8zYk-RUssQ2TsyQpHSiLg5Owxt60469wDtzWlzeG6y0RDTPu1S5Ap5Pbmj2sNcDHCvdKUYz0NiOjIUBaX5lszJGwgdHbZOF_S-IG0q5m/s1600-h/greater20K.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5302094033565227330&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzXi5PA1yCQDGLODILNx1AysVzvlVTaD1ukpsk8zYk-RUssQ2TsyQpHSiLg5Owxt60469wDtzWlzeG6y0RDTPu1S5Ap5Pbmj2sNcDHCvdKUYz0NiOjIUBaX5lszJGwgdHbZOF_S-IG0q5m/s320/greater20K.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 57px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 181px;&quot; /&gt;&lt;/a&gt;மொத்தவிற்பனை 5000 ரூபாயைவிடக் குறைவாக விற்றவர் யார்?&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;SELECT SalesMan,SUM(SaleAmount) as [Individual SaleAmount] FROM Sales&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;GROUP BY SalesMan&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;HAVING SUM(SaleAmount)&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjV2XRjuAKkDZVqtX-LsxWq3c-VY-WcHwaj3bZVJgGhorlz1IXJyx8QuDP4UCj5cdJY38yGsPtt7RQ48-Na_dTvlLSWSnPcC53FclZJg_GR35cx2CtMwMEIyLyipcEfCGN6Gd1hhtcDpLGa/s1600-h/lessthan5K.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5302094651889442594&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjV2XRjuAKkDZVqtX-LsxWq3c-VY-WcHwaj3bZVJgGhorlz1IXJyx8QuDP4UCj5cdJY38yGsPtt7RQ48-Na_dTvlLSWSnPcC53FclZJg_GR35cx2CtMwMEIyLyipcEfCGN6Gd1hhtcDpLGa/s320/lessthan5K.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 39px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 182px;&quot; /&gt;&lt;/a&gt;5000 ரூபாய்கள் முதல் 20000 ரூபாய்கள் வரை விற்பனை செய்தோர் யாவர்?&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;SELECT SalesMan,SUM(SaleAmount) as [Individual SaleAmount] FROM Sales&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;GROUP BY SalesMan&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;HAVING SUM(SaleAmount) BETWEEN 1000 AND 20000&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfEx5HRJQndSMfxXZmrpjsS7KSInxSvDLdBg295n4yohd5MiHV0jv7-kZ6LVhJBODbG1HeSGhnRwJ1Jj4dNSsKCuE8ISnmzvNNvuuYBRAxdN6E9wgkYymtKKjzNDXtj1Q5yX2Or-m9fTay/s1600-h/5K220K.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5302095207356199602&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfEx5HRJQndSMfxXZmrpjsS7KSInxSvDLdBg295n4yohd5MiHV0jv7-kZ6LVhJBODbG1HeSGhnRwJ1Jj4dNSsKCuE8ISnmzvNNvuuYBRAxdN6E9wgkYymtKKjzNDXtj1Q5yX2Or-m9fTay/s320/5K220K.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 59px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 185px;&quot; /&gt;&lt;/a&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;கீழே உள்ளதைக் கவனிக்கவும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;SELECT SalesMan, SUM(SaleAmount) as [TotalSales], MAX(SaleAmount) as [Maximum], Min(SaleAmount) as [Minimum], count(SaleAmount)as [TotalTransaction] from Sales&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;நான் எதையோ எதிர்பார்த்து இப்படிக் கொடுத்தால் என்ன ஆகும். Sum, Max, Min, Count அனைத்தையும் கொடுத்துள்ளேன். ஆனால் GROUP BY மட்டும் கொடுக்காமல் விட்டுவிட்டேன். இப்போது என்ன ஆகும்?&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;கீழேயுள்ள பிழைச்செய்திதான் கிடைக்கும். குழுவாகப் பிரித்து ஒவ்வொருவரின் தனித்திறமையைக் காண்பதற்கே GROUP BY பயன்படுகிறது.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;color: #cc0000; margin: 0px; padding: 0px;&quot;&gt;Msg 8120, Level 16, State 1, Line 1&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;color: #cc0000; margin: 0px; padding: 0px;&quot;&gt;Column &#39;Sales.SalesMan&#39; is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause.&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இதைச் சரிசெய்த பிறகு,&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;SELECT SalesMan, SUM(SaleAmount) as [TotalSales], MAX(SaleAmount) as [Maximum], Min(SaleAmount) as [Minimum], count(SaleAmount)as [TotalTransaction]&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;from Sales&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;GROUP BY SalesMan&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இதன் விடை:&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPLsi758yj8UgwK2DSFB4jPDhWZfHT5kkRhMd0BSn_4UGiH6CB7zY5R5J7FjHhG3V_2kjBjj4n_2Bye3y5_Jp4kexcpzDxUO5fDSfEEqA3DYmwes_2hCZf5QdIRhUXmWxLAQoUKEHjgbPu/s1600-h/finaltab.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5302098504284581442&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPLsi758yj8UgwK2DSFB4jPDhWZfHT5kkRhMd0BSn_4UGiH6CB7zY5R5J7FjHhG3V_2kjBjj4n_2Bye3y5_Jp4kexcpzDxUO5fDSfEEqA3DYmwes_2hCZf5QdIRhUXmWxLAQoUKEHjgbPu/s320/finaltab.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 92px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 320px;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
  95. &lt;div&gt;
  96. &lt;br /&gt;&lt;/div&gt;
  97. &lt;/div&gt;
  98. </content><link rel='replies' type='application/atom+xml' href='http://tamilprogramminng.blogspot.com/feeds/5861097863378326499/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tamilprogramminng.blogspot.com/2013/08/sql-16.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3691376985285892436/posts/default/5861097863378326499'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3691376985285892436/posts/default/5861097863378326499'/><link rel='alternate' type='text/html' href='http://tamilprogramminng.blogspot.com/2013/08/sql-16.html' title='எளிய தமிழில் SQL - பாகம் 16'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipxWBllh1rvjeef0jCeT5SkcF_ck2VICq5hI3eqJxSx5bJJj472zpowrd72tEKWKsRLhXssIoCCkT-TRV4njhxC3VQGE4JIzeR7vx1qlm5SmcGaU4jYctm82Nih_6TfLL0tV_Dv31oT-s3/s72-c/sampletablestructure.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3691376985285892436.post-2824736612234916602</id><published>2013-08-08T04:58:00.002-07:00</published><updated>2013-08-08T04:58:29.573-07:00</updated><title type='text'>எளிய தமிழில் SQL - பாகம் 15</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
  99. &lt;span style=&quot;background-color: white; font-family: Georgia, Times, serif; font-size: 13px; line-height: 20.984375px; text-align: justify;&quot;&gt;இன்றைய பாகம் 15ல் இரண்டு tableகளை இணைப்பது குறித்து இன்னும் விவரமாகப் பார்க்க இருக்கிறோம்.&lt;/span&gt;&lt;br /&gt;
  100. &lt;div class=&quot;post-body entry-content&quot; style=&quot;background-color: white; font-family: Georgia, Times, serif; font-size: 13px; line-height: 20.984375px; margin: 0px; padding: 0px; text-align: justify;&quot;&gt;
  101. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;பாகம் 14ல் Primarykey மற்றும் Foreign key ஆகியவற்றைப் பயன்படுத்துவது என்பது குறித்துப் பார்த்தோம். அதன் தொடர்ச்சியாக இதைக் கொண்டாலும் இதில் சில விதிவிலக்குகள் புரிதலுக்காகச் செய்திருக்கிறேன்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;ஒன்றுக்கு மேற்பட்ட Tableகளை இணைத்து அனைத்து அறிக்கைகளையும் ஒரே திரையில் காண்பதற்கு JOIN பயன்படுத்தப்படுகிறது.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;JOINன் வகைகள்&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;INNER JOIN&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;OUTER JOIN&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;SELF JOIN&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;CROSS JOIN&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;OUTER JOIN ஐ இன்னும் 3 வகை உட்பிரிவுகளாகப் பிரித்து, LEFT OUTER, RIGHT OUTER, FULL OUTER எனப் பிரிக்கலாம்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இங்கே மாதிரிக்காக 2 tableகளை உருவாக்கி அவற்றில் சில மாதிரி records ஐ ஏற்றியிருக்கிறேன். அவற்றின் பெயர்கள் Author மற்றும் Publication ஆகியவை.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;Author அட்டவணையின் Structure மற்றும் மாதிரி தகவல்கள் ஆகியவை கீழே:&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMv_oQH0IR7QPn635YeptaUyOSW6VcQ_zM7bw6eTB2CIq_TCaHnzIWWnclvnsryQrUEheXBzdqHN5e86LkLNopkjAftY3QEa9TSxdtseKdTzJ4zEkunRlsqlc40n2GL_WCX0uHUuyWmQvH/s1600-h/AuthorStructure.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5301176093732399922&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMv_oQH0IR7QPn635YeptaUyOSW6VcQ_zM7bw6eTB2CIq_TCaHnzIWWnclvnsryQrUEheXBzdqHN5e86LkLNopkjAftY3QEa9TSxdtseKdTzJ4zEkunRlsqlc40n2GL_WCX0uHUuyWmQvH/s320/AuthorStructure.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 40px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 315px;&quot; /&gt;&lt;/a&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhjGLV5dCDb0guXyduICzWoh_xkqeV2CMTjHhJniZCnJL8m0HiOxA-XJqXwEEP_qzV6ZoWXR_QEIZoOl_xJbBZcf-eGXnauD4tGUHf-ghtJahQ3mNEhLokI1okWVtC7lAwFoqVNUw0Rq-Q0/s1600-h/AuthorSampleData.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5301178124659191058&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhjGLV5dCDb0guXyduICzWoh_xkqeV2CMTjHhJniZCnJL8m0HiOxA-XJqXwEEP_qzV6ZoWXR_QEIZoOl_xJbBZcf-eGXnauD4tGUHf-ghtJahQ3mNEhLokI1okWVtC7lAwFoqVNUw0Rq-Q0/s320/AuthorSampleData.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 229px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 201px;&quot; /&gt;&lt;/a&gt;Publication அட்டவணையின் Structure Structure மற்றும் மாதிரி தகவல்கள் ஆகியவை கீழே:&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimPorQzkW9nHACHCo6XQqsahbDEFdfV2XACAGq0JvSxm-XUTt9iq7Wg_7YsfyMR2NK4HRwQxT-8R7sx4V1pEcphUgXIGVQ3adBGA_jg5QrhSSXSlUbHOyv-UrqDtFySgJHMbcTo-dE-GDI/s1600-h/publicationstructure.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5301176591078741954&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimPorQzkW9nHACHCo6XQqsahbDEFdfV2XACAGq0JvSxm-XUTt9iq7Wg_7YsfyMR2NK4HRwQxT-8R7sx4V1pEcphUgXIGVQ3adBGA_jg5QrhSSXSlUbHOyv-UrqDtFySgJHMbcTo-dE-GDI/s320/publicationstructure.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 60px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 317px;&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigTpMSmha9VuKTIVyK93olKyy26rT2tevbvvUg246VRYEf_u5kte9MQhoLjaY84Yqn9m7eAZVY7TlWNmFYiSA8UgFWpBrbDt3bFJABPZJIos7p988TacOx-RMOvUx-yweGAv8mHmG_b9aJ/s1600-h/publicationsampledata.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5301178121740158466&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigTpMSmha9VuKTIVyK93olKyy26rT2tevbvvUg246VRYEf_u5kte9MQhoLjaY84Yqn9m7eAZVY7TlWNmFYiSA8UgFWpBrbDt3bFJABPZJIos7p988TacOx-RMOvUx-yweGAv8mHmG_b9aJ/s320/publicationsampledata.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 320px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 270px;&quot; /&gt;&lt;/a&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;எழுத்தாளர் அட்டவணையில் உள்ள முதல் 4 Authorகள் பதிப்பக அட்டவணையில் வேறுவேறு நூல்களை எழுதி இருக்கின்றனர். ஆனால் மீதமுள்ள 6 எழுத்தாளர்கள் எழுதிய நூல்களின் விவரங்கள் பதிப்பக அட்டவணையில் இல்லை.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;அதேபோல பதிப்பக அட்டவணையில் உள்ள குறிப்பிட்ட Chicken Special முதல் Making of Nandha வரையிலான புத்தகங்களின் எழுத்தாளர்கள் பற்றிய விவரங்கள் Author அட்டவணையில் இல்லை. இது ஒரு மாதிரிக்காக உருவாக்கப்பட்ட tableகள். இவற்றின் மூலம் நாம் tableகளை இணைக்கும் JOIN பற்றி எளிதாக அறிந்துகொள்ளலாம்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;முதலில் INNER JOIN பற்றிப் பார்ப்போம். அதன் Syntax கீழே:&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;SELECT table1.Field1, table1.Field2, table2.Field1, table2.Field2&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;FROM&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;table1 INNER JOIN table2&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;ON&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;table1.CommonField = table2.CommonField&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இங்கே table1 = Author , table2 = Publication என அறிக.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இதற்கான உதாரணத்தைக் கவனிக்கவும்&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;SELECT Author.AuthorID, Author.AuthorName, Publication.BookName&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;FROM Author INNER JOIN&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;Publication ON Author.AuthorID = Publication.AuthorID&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இதன் விடை:&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBayH7AivTzrTXGN7wwNHbcqQE98N0vaVyLqlUWgaYSRSGcX_GCku8p0AbyG3X6ifqlJ8LXqdzkywmeLIxArNsZ3P9dGGW0E6FBWAcb0qOzTtZhIBUTkzfGEtcv30vLuIAcTiAPKRM1klg/s1600-h/inner.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5301181060439796082&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBayH7AivTzrTXGN7wwNHbcqQE98N0vaVyLqlUWgaYSRSGcX_GCku8p0AbyG3X6ifqlJ8LXqdzkywmeLIxArNsZ3P9dGGW0E6FBWAcb0qOzTtZhIBUTkzfGEtcv30vLuIAcTiAPKRM1klg/s320/inner.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 189px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 276px;&quot; /&gt;&lt;/a&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இங்கே இரண்டு tableகளுக்கும் பொதுவாக அமைந்துள்ள rows மட்டுமே இடம்பெற்றுள்ளன.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;Author அட்டவணையிலும், Publication அட்டவணையிலும் வண்ணமிட்டுக் காட்டப்பட்ட தகவல்களைக் காணவில்லை. பொதுவாக உள்ளவை மட்டுமே இடம்பெற்றுள்ளன. கீழேயுள்ள கணம் பற்றிய படத்தைக் கவனிக்கவும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihtfy_4FLBCgAQbzeH5XEcf8u2mah6UVoFK3CFCn9zpsuLGXpnpAqS7XflBvPflW7WSceW3gYuzkRHl-Z1rt19Nqedk-u3GJ72RZT1HLd8i_N42Klg4RNtExjwnWcNcgERw-wOafthWjN-/s1600-h/inner.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5301183857540574290&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihtfy_4FLBCgAQbzeH5XEcf8u2mah6UVoFK3CFCn9zpsuLGXpnpAqS7XflBvPflW7WSceW3gYuzkRHl-Z1rt19Nqedk-u3GJ72RZT1HLd8i_N42Klg4RNtExjwnWcNcgERw-wOafthWjN-/s320/inner.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 188px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 320px;&quot; /&gt;&lt;/a&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;LEFT OUTER JOIN பற்றிப் பார்ப்போம். அதன் Syntax கீழே:&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;SELECT table1.Field1, table1.Field2, table2.Field1, table2.Field2&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;FROM&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;table1 LEFT OUTER JOIN table2&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;ON&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;table1.CommonField = table2.CommonField&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இங்கே table1 = Author , table2 = Publication என அறிக.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இதற்கான உதாரணத்தைக் கவனிக்கவும்&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;SELECT Author.AuthorID, Author.AuthorName, Publication.BookName&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;FROM Author LEFT OUTER JOIN&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;Publication ON Author.AuthorID = Publication.AuthorID&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இதன் விடை:&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtZV9zR7PYQSqKdnU6G5XoOMksjBh8B7qAHnX8hycFZef0rw666uZfxK3-aNuX4obBy59ffXrWutlRuISl0ggZpSSObNSGAOzppQf0QgftSmdC4hVXWEbxgKhjdcqV1nvodg5BBcLk38lV/s1600-h/leftoutersampledata.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5301184827667190290&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtZV9zR7PYQSqKdnU6G5XoOMksjBh8B7qAHnX8hycFZef0rw666uZfxK3-aNuX4obBy59ffXrWutlRuISl0ggZpSSObNSGAOzppQf0QgftSmdC4hVXWEbxgKhjdcqV1nvodg5BBcLk38lV/s320/leftoutersampledata.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 308px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 274px;&quot; /&gt;&lt;/a&gt;இங்கே முதலாவது table ஆகிய Author ல் இருக்கும் அனைத்து rowsஇடம் பெற்றுள்ளன. ஒரே எழுத்தாளர் ஒன்றுக்கு மேற்பட்ட புத்தகங்களை எழுதியுள்ளதால் அவர்கள் திரும்பத்திரும்ப இடம்பெற்றிருக்கிறார்கள்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;5 முதல் 10 வரையிலான எழுத்தாளர்கள் எழுதிய புத்தகங்கள் Publication அட்டவணையில் இல்லாததால் அவர்களுக்கு நேரே உள்ள BookName ல் NULL மூலம் நிரப்பப்பட்டுவிட்டது.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இடதுபுற (Left side = Author) அட்டவணையில் எல்லா recordsம் தேர்வுசெய்யப்பட்டுவிடும். ஆனால் வலது புறத்தில் உறவுமுறை (Relation) இல்லாத rows எல்லாவற்றிலும் NULL நிரப்பப்பட்டுக் காண்பிக்கப்படும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgl5uOxtDB36a8hsye0tXXTAlI_IMy_ejaUiz_xMulHcOhCmOrvBHU9zvrMWPVQfkI3rRFgCY1wM86_5uBaPH_nAsOLRZQ-IpvidGnODKFJDW0OiBYTBVQ0bpbcnv9ZViKNvauNHXxPXZTV/s1600-h/leftouter.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5301189921398596994&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgl5uOxtDB36a8hsye0tXXTAlI_IMy_ejaUiz_xMulHcOhCmOrvBHU9zvrMWPVQfkI3rRFgCY1wM86_5uBaPH_nAsOLRZQ-IpvidGnODKFJDW0OiBYTBVQ0bpbcnv9ZViKNvauNHXxPXZTV/s320/leftouter.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 205px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 236px;&quot; /&gt;&lt;/a&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;மேலே காட்டப்பட்டிருக்கு கணம் பற்றிய படத்தைக் கவனிக்கவும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;RIGHT OUTER JOIN பற்றிப் பார்ப்போம். அதன் Syntax கீழே:&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;SELECT table1.Field1, table1.Field2, table2.Field1, table2.Field2,table2.Field3&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;FROM&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;table1 RIGHT OUTER JOIN table2&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;ON&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;table1.CommonField = table2.CommonField&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இங்கே table1 = Author , table2 = Publication என அறிக.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இதற்கான உதாரணத்தைக் கவனிக்கவும்&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;SELECT Author.AuthorID, Author.AuthorName, Publication.BookName,Publication.Publication&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;FROM Author RIGHT OUTER JOIN&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;Publication ON Author.AuthorID = Publication.AuthorID&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இதன் விடை: AuthorIDல் 5 முதல் 10 வரையிலான அனைத்து Authorகளைத் தவிர மீதியுள்ளோர் மட்டுமே இடதுபுறம் இடம்பெற்றுள்ளனர். Chicken Special முதல் Making of Nandha வரையிலான நூல்களை எழுதிய Author பற்றிய குறிப்புகள் Author அட்டவணையில் இல்லை - அதனால் அவற்றுக்கு நேராக NULL நிரப்பப்பட்டுவிட்டது. Right Outer Join ல் வலது புறம் (Right side) உள்ள அட்டவணையின் அனைத்து records ம் திரையில் காண்பிக்கப்படும். ஒப்புமை இல்லாத இடதுபுற rowsக்கு மட்டும் NULL நிரப்பப்பட்டுவிடும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgr_42HX-xsOtCw4yqeHfvh0J2TJ-RpAGnUww5CPu8S4-EcvJGOgP_J1zEzSlwrTfRPpZIFXfJ3pVRG3DKCZEoT1ShH9XzeWI7L4EwxDzcdTt2SSrmXdE8t19RrRNqVRkNGRBs0wWZR0NcV/s1600-h/rightouterresultdata.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5301187204279746658&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgr_42HX-xsOtCw4yqeHfvh0J2TJ-RpAGnUww5CPu8S4-EcvJGOgP_J1zEzSlwrTfRPpZIFXfJ3pVRG3DKCZEoT1ShH9XzeWI7L4EwxDzcdTt2SSrmXdE8t19RrRNqVRkNGRBs0wWZR0NcV/s320/rightouterresultdata.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 271px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 320px;&quot; /&gt;&lt;/a&gt;கீழேயுள்ள கணம் பற்றிய படத்தைக் கவனிக்கவும்.&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYvsmPFfsVX4bcUX79Hdu1wwoUdTnMIcFCEcfQH2reU1iH8DyOEHLp4_UUM-ARktuQjaycwPbNniMariMQTZZn_RQbSFGObXcQEpbbvmGVraLAPmvxqO60hoE74j42s5A9KcyEJikenk1u/s1600-h/rightouter.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5301190797923611826&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYvsmPFfsVX4bcUX79Hdu1wwoUdTnMIcFCEcfQH2reU1iH8DyOEHLp4_UUM-ARktuQjaycwPbNniMariMQTZZn_RQbSFGObXcQEpbbvmGVraLAPmvxqO60hoE74j42s5A9KcyEJikenk1u/s320/rightouter.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 204px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 220px;&quot; /&gt;&lt;/a&gt;இப்போது FULL OUTER பற்றிப் பார்ப்போம்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;அதன் Syntax கீழே:&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;SELECT table1.Field1, table1.Field2, table2.Field1, table2.Field2,table2.Field3&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;FROM&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;table1 FULL OUTER JOIN table2&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;ON&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;table1.CommonField = table2.CommonField&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இங்கே table1 = Author , table2 = Publication என அறிக.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இதற்கான உதாரணத்தைக் கவனிக்கவும்&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;SELECT Author.AuthorID, Author.AuthorName, Publication.BookName,Publication.Publication&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;FROM Author FULL OUTER JOIN&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;Publication ON Author.AuthorID = Publication.AuthorID&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இதன் விடை:&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0nFfqhIR4HrdInL0ZOhg5smRcYzGMtjIuSA0HJPTqkkzfenG6Au_ocOJOu2fAUXiNVWJLzYjK-U8lEpdP34Cp1WrWlh1H7kAjAoEmcf2LKdzY6J8sGR4j8EJoSHftLSLsurdkZu0U1u3L/s1600-h/FULLouterdata.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5301191468281787522&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0nFfqhIR4HrdInL0ZOhg5smRcYzGMtjIuSA0HJPTqkkzfenG6Au_ocOJOu2fAUXiNVWJLzYjK-U8lEpdP34Cp1WrWlh1H7kAjAoEmcf2LKdzY6J8sGR4j8EJoSHftLSLsurdkZu0U1u3L/s320/FULLouterdata.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 320px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 278px;&quot; /&gt;&lt;/a&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இரண்டுபுறமுள்ள tableகளிலும் உள்ள பொதுவான rows அதன் இடங்களில் சரியாக இடம்பெற்றுள்ளன. உறவுமுறையில்லாத recordsம் இடம்பெற்றுள்ளன. ஆனால் எங்கெங்கு தகவல்கள் இல்லையோ அங்கேயெல்லாம் NULL மூலம் நிரப்பப்பட்டுவிட்டன. Author அட்டவணையின் Elavarasan முதல் KaviNilavu வரையிலான எழுத்தாளர்களும் இடம்பெற்றிருக்கின்றனர். ஆனால் அவர்கள் எழுதிய புத்தகங்கள் Publication அட்டவணையில் இல்லாத காரணத்தால் வலதுபுறத்தில் NULL இடம்பெற்றுள்ளது. அதேபோல Chicken Special முதல் Making of Nandha வரையிலான நூல்களை எழுதியவர்களின் விபரம் Author அட்டவணையில் இல்லாததால் இடப்பக்கமாக NULL நிரப்பப்பட்டுவிட்டது.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;CROSS JOIN பற்றிப் பார்ப்போம்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;Cross join என்பது குறுக்குப் பெருக்கல் ஆகும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இதன் மாதிரி வடிவம்:&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;SELECT Author.AuthorName, Publication.BookName, Publication.Publication&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;FROM Author CROSS JOIN&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;Publication&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;மொத்த rowsன் எண்ணிக்கை = இடப்புறம் உள்ள rowsகளின் எண்ணிக்க x வலப்புறம் உள்ள rows எண்ணிக்கை.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;SELECT COUNT(*) FROM Author --&amp;gt; 10 records உள்ளன&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;SELECT COUNT(*) FROM Publication --&amp;gt; 16 rows உள்ளன.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;Count(*) இந்த Function மூலம் ஒரு tableல் எத்தனை rows உள்ளன என அறியலாம்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;Cross join இணைப்பிற்குப் பிறகு உருவாகும்&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;rowsகளின் எண்ணிக்கை = 10 x 16 = 160.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இடப்புறமுள்ள ஒவ்வொரு recordம் , வலப்புறமுள்ள அனைத்து recordsஉடன் ஒவ்வொருமுறையும் இணைத்துக் காட்சியளிக்கும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;SELF JOIN என்பது ஒரே table ஆனது, அதற்குள்ளேயே இணைக்கப்படுவதால் அவ்வாறு அழைக்கப்படுகிறது.&amp;nbsp;&lt;/div&gt;
  102. &lt;/div&gt;
  103. </content><link rel='replies' type='application/atom+xml' href='http://tamilprogramminng.blogspot.com/feeds/2824736612234916602/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tamilprogramminng.blogspot.com/2013/08/sql-15.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3691376985285892436/posts/default/2824736612234916602'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3691376985285892436/posts/default/2824736612234916602'/><link rel='alternate' type='text/html' href='http://tamilprogramminng.blogspot.com/2013/08/sql-15.html' title='எளிய தமிழில் SQL - பாகம் 15'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMv_oQH0IR7QPn635YeptaUyOSW6VcQ_zM7bw6eTB2CIq_TCaHnzIWWnclvnsryQrUEheXBzdqHN5e86LkLNopkjAftY3QEa9TSxdtseKdTzJ4zEkunRlsqlc40n2GL_WCX0uHUuyWmQvH/s72-c/AuthorStructure.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3691376985285892436.post-4522888604367616994</id><published>2013-08-08T04:57:00.000-07:00</published><updated>2013-08-08T04:57:09.851-07:00</updated><title type='text'>எளிய தமிழில் SQL - பாகம் 14</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
  104. &lt;h3 class=&quot;post-title entry-title&quot; style=&quot;background-color: white; font-family: Times, serif; font-size: 31px; font-weight: normal; line-height: 1.4em; margin: 0px; padding: 0px;&quot;&gt;
  105. &lt;span style=&quot;font-family: Georgia, Times, serif; font-size: 13px; line-height: 20.984375px; text-align: justify;&quot;&gt;மேலும் SQL க்கான Syntax அட்டவணையை&lt;/span&gt;&lt;a href=&quot;http://www.w3schools.com/sql/sql_quickref.asp&quot; style=&quot;color: #2a6080; font-family: Georgia, Times, serif; font-size: 13px; line-height: 20.984375px; margin: 0px; padding: 0px; text-align: justify;&quot; target=&quot;_blank&quot;&gt;http://www.w3schools.com/sql/sql_quickref.asp&lt;/a&gt;&lt;span style=&quot;font-family: Georgia, Times, serif; font-size: 13px; line-height: 20.984375px; text-align: justify;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Georgia, Times, serif; font-size: 13px; line-height: 20.984375px; text-align: justify;&quot;&gt;ல் கண்டேன். அதனைக் கீழே தந்திருக்கிறேன்.&lt;/span&gt;&lt;/h3&gt;
  106. &lt;div class=&quot;post-body entry-content&quot; style=&quot;background-color: white; font-family: Georgia, Times, serif; font-size: 13px; line-height: 20.984375px; margin: 0px; padding: 0px; text-align: justify;&quot;&gt;
  107. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;நன்றி :&amp;nbsp;&lt;a href=&quot;http://www.w3schools.com/&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot; target=&quot;_blank&quot;&gt;http://www.w3schools.com&lt;/a&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இந்த SQL Syntaxகளை நன்றாகப் படித்து மனதில் வைத்துக்கொள்ளவும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;table border=&quot;1&quot; cellspacing=&quot;0&quot; class=&quot;ex&quot; style=&quot;margin: 0px; padding: 0px; width: 100%px;&quot;&gt;&lt;tbody style=&quot;margin: 0px; padding: 0px;&quot;&gt;
  108. &lt;tr style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;td align=&quot;left&quot; style=&quot;margin: 0px; padding: 0px;&quot; valign=&quot;top&quot;&gt;AND / OR&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;margin: 0px; padding: 0px;&quot; valign=&quot;top&quot;&gt;SELECT column_name(s)&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;FROM table_name&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;WHERE condition&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;AND|OR condition&lt;/td&gt;&lt;/tr&gt;
  109. &lt;tr style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;td align=&quot;left&quot; style=&quot;margin: 0px; padding: 0px;&quot; valign=&quot;top&quot;&gt;ALTER TABLE&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;margin: 0px; padding: 0px;&quot; valign=&quot;top&quot;&gt;ALTER TABLE table_name&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;ADD column_name datatype&lt;div style=&quot;display: inline; height: auto; overflow: visible; padding: 1px 0px;&quot;&gt;
  110. or&lt;/div&gt;
  111. &amp;nbsp;&lt;div style=&quot;display: inline; height: auto; overflow: visible; padding: 1px 0px;&quot;&gt;
  112. ALTER TABLE table_name&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;DROP COLUMN column_name&lt;/div&gt;
  113. &lt;/td&gt;&lt;/tr&gt;
  114. &lt;tr style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;td align=&quot;left&quot; style=&quot;margin: 0px; padding: 0px;&quot; valign=&quot;top&quot;&gt;AS (alias)&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;margin: 0px; padding: 0px;&quot; valign=&quot;top&quot;&gt;SELECT column_name AS column_alias&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;FROM table_name&lt;div style=&quot;display: inline; height: auto; overflow: visible; padding: 1px 0px;&quot;&gt;
  115. or&lt;/div&gt;
  116. &amp;nbsp;&lt;div style=&quot;display: inline; height: auto; overflow: visible; padding: 1px 0px;&quot;&gt;
  117. SELECT column_name&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;FROM table_name AS table_alias&lt;/div&gt;
  118. &lt;/td&gt;&lt;/tr&gt;
  119. &lt;tr style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;td align=&quot;left&quot; style=&quot;margin: 0px; padding: 0px;&quot; valign=&quot;top&quot;&gt;BETWEEN&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;margin: 0px; padding: 0px;&quot; valign=&quot;top&quot;&gt;SELECT column_name(s)&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;FROM table_name&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;WHERE column_name&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;BETWEEN value1 AND value2&lt;/td&gt;&lt;/tr&gt;
  120. &lt;tr style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;td align=&quot;left&quot; style=&quot;margin: 0px; padding: 0px;&quot; valign=&quot;top&quot;&gt;CREATE DATABASE&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;margin: 0px; padding: 0px;&quot; valign=&quot;top&quot;&gt;CREATE DATABASE database_name&lt;/td&gt;&lt;/tr&gt;
  121. &lt;tr style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;td align=&quot;left&quot; style=&quot;margin: 0px; padding: 0px;&quot; valign=&quot;top&quot;&gt;CREATE TABLE&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;margin: 0px; padding: 0px;&quot; valign=&quot;top&quot;&gt;CREATE TABLE table_name&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;(&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;column_name1 data_type,&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;column_name2 data_type,&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;column_name2 data_type,&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;...&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;)&lt;/td&gt;&lt;/tr&gt;
  122. &lt;tr style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;td align=&quot;left&quot; style=&quot;margin: 0px; padding: 0px;&quot; valign=&quot;top&quot;&gt;CREATE INDEX&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;margin: 0px; padding: 0px;&quot; valign=&quot;top&quot;&gt;CREATE INDEX index_name&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;ON table_name (column_name)&lt;div style=&quot;display: inline; height: auto; overflow: visible; padding: 1px 0px;&quot;&gt;
  123. or&lt;/div&gt;
  124. &amp;nbsp;&lt;div style=&quot;display: inline; height: auto; overflow: visible; padding: 1px 0px;&quot;&gt;
  125. CREATE UNIQUE INDEX index_name&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;ON table_name (column_name)&lt;/div&gt;
  126. &lt;/td&gt;&lt;/tr&gt;
  127. &lt;tr style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;td align=&quot;left&quot; style=&quot;margin: 0px; padding: 0px;&quot; valign=&quot;top&quot;&gt;CREATE VIEW&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;margin: 0px; padding: 0px;&quot; valign=&quot;top&quot;&gt;CREATE VIEW view_name AS&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;SELECT column_name(s)&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;FROM table_name&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;WHERE condition&lt;/td&gt;&lt;/tr&gt;
  128. &lt;tr style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;td align=&quot;left&quot; style=&quot;margin: 0px; padding: 0px;&quot; valign=&quot;top&quot;&gt;DELETE&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;margin: 0px; padding: 0px;&quot; valign=&quot;top&quot;&gt;DELETE FROM table_name&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;WHERE some_column=some_value&lt;div style=&quot;display: inline; height: auto; overflow: visible; padding: 1px 0px;&quot;&gt;
  129. or&lt;/div&gt;
  130. &amp;nbsp;&lt;div style=&quot;display: inline; height: auto; overflow: visible; padding: 1px 0px;&quot;&gt;
  131. DELETE FROM table_name&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;(&lt;b style=&quot;margin: 0px; padding: 0px;&quot;&gt;Note:&amp;nbsp;&lt;/b&gt;Deletes the entire table!!)&lt;/div&gt;
  132. &amp;nbsp;&lt;div style=&quot;display: inline; height: auto; overflow: visible; padding: 1px 0px;&quot;&gt;
  133. DELETE * FROM table_name&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;(&lt;b style=&quot;margin: 0px; padding: 0px;&quot;&gt;Note:&amp;nbsp;&lt;/b&gt;Deletes the entire table!!)&lt;/div&gt;
  134. &lt;/td&gt;&lt;/tr&gt;
  135. &lt;tr style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;td align=&quot;left&quot; style=&quot;margin: 0px; padding: 0px;&quot; valign=&quot;top&quot;&gt;DROP DATABASE&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;margin: 0px; padding: 0px;&quot; valign=&quot;top&quot;&gt;DROP DATABASE database_name&lt;/td&gt;&lt;/tr&gt;
  136. &lt;tr style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;td align=&quot;left&quot; style=&quot;margin: 0px; padding: 0px;&quot; valign=&quot;top&quot;&gt;DROP INDEX&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;margin: 0px; padding: 0px;&quot; valign=&quot;top&quot;&gt;DROP INDEX table_name.index_name (SQL Server)&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;DROP INDEX index_name ON table_name (MS Access)&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;DROP INDEX index_name (DB2/Oracle)&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;ALTER TABLE table_name&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;DROP INDEX index_name (MySQL)&lt;/td&gt;&lt;/tr&gt;
  137. &lt;tr style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;td align=&quot;left&quot; style=&quot;margin: 0px; padding: 0px;&quot; valign=&quot;top&quot;&gt;DROP TABLE&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;margin: 0px; padding: 0px;&quot; valign=&quot;top&quot;&gt;DROP TABLE table_name&lt;/td&gt;&lt;/tr&gt;
  138. &lt;tr style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;td align=&quot;left&quot; style=&quot;margin: 0px; padding: 0px;&quot; valign=&quot;top&quot;&gt;GROUP BY&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;margin: 0px; padding: 0px;&quot; valign=&quot;top&quot;&gt;SELECT column_name, aggregate_function(column_name)&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;FROM table_name&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;WHERE column_name operator value&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;GROUP BY column_name&lt;/td&gt;&lt;/tr&gt;
  139. &lt;tr style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;td align=&quot;left&quot; style=&quot;margin: 0px; padding: 0px;&quot; valign=&quot;top&quot;&gt;HAVING&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;margin: 0px; padding: 0px;&quot; valign=&quot;top&quot;&gt;SELECT column_name, aggregate_function(column_name)&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;FROM table_name&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;WHERE column_name operator value&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;GROUP BY column_name&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;HAVING aggregate_function(column_name) operator value&lt;/td&gt;&lt;/tr&gt;
  140. &lt;tr style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;td align=&quot;left&quot; style=&quot;margin: 0px; padding: 0px;&quot; valign=&quot;top&quot;&gt;IN&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;margin: 0px; padding: 0px;&quot; valign=&quot;top&quot;&gt;SELECT column_name(s)&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;FROM table_name&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;WHERE column_name&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;IN (value1,value2,..)&lt;/td&gt;&lt;/tr&gt;
  141. &lt;tr style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;td align=&quot;left&quot; style=&quot;margin: 0px; padding: 0px;&quot; valign=&quot;top&quot;&gt;INSERT INTO&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;margin: 0px; padding: 0px;&quot; valign=&quot;top&quot;&gt;INSERT INTO table_name&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;VALUES (value1, value2, value3,....)&lt;div style=&quot;display: inline; height: auto; overflow: visible; padding: 1px 0px;&quot;&gt;
  142. &lt;i style=&quot;margin: 0px; padding: 0px;&quot;&gt;or&lt;/i&gt;&lt;/div&gt;
  143. &amp;nbsp;&lt;div style=&quot;display: inline; height: auto; overflow: visible; padding: 1px 0px;&quot;&gt;
  144. INSERT INTO table_name&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;(column1, column2, column3,...)&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;VALUES (value1, value2, value3,....)&lt;/div&gt;
  145. &lt;/td&gt;&lt;/tr&gt;
  146. &lt;tr style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;td align=&quot;left&quot; style=&quot;margin: 0px; padding: 0px;&quot; valign=&quot;top&quot;&gt;INNER JOIN&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;margin: 0px; padding: 0px;&quot; valign=&quot;top&quot;&gt;SELECT column_name(s)&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;FROM table_name1&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;INNER JOIN table_name2&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;ON table_name1.column_name=table_name2.column_name&lt;/td&gt;&lt;/tr&gt;
  147. &lt;tr style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;td align=&quot;left&quot; style=&quot;margin: 0px; padding: 0px;&quot; valign=&quot;top&quot;&gt;LEFT JOIN&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;margin: 0px; padding: 0px;&quot; valign=&quot;top&quot;&gt;SELECT column_name(s)&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;FROM table_name1&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;LEFT JOIN table_name2&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;ON table_name1.column_name=table_name2.column_name&lt;/td&gt;&lt;/tr&gt;
  148. &lt;tr style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;td align=&quot;left&quot; style=&quot;margin: 0px; padding: 0px;&quot; valign=&quot;top&quot;&gt;RIGHT JOIN&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;margin: 0px; padding: 0px;&quot; valign=&quot;top&quot;&gt;SELECT column_name(s)&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;FROM table_name1&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;RIGHT JOIN table_name2&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;ON table_name1.column_name=table_name2.column_name&lt;/td&gt;&lt;/tr&gt;
  149. &lt;tr style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;td align=&quot;left&quot; style=&quot;margin: 0px; padding: 0px;&quot; valign=&quot;top&quot;&gt;FULL JOIN&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;margin: 0px; padding: 0px;&quot; valign=&quot;top&quot;&gt;SELECT column_name(s)&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;FROM table_name1&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;FULL JOIN table_name2&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;ON table_name1.column_name=table_name2.column_name&lt;/td&gt;&lt;/tr&gt;
  150. &lt;tr style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;td align=&quot;left&quot; style=&quot;margin: 0px; padding: 0px;&quot; valign=&quot;top&quot;&gt;LIKE&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;margin: 0px; padding: 0px;&quot; valign=&quot;top&quot;&gt;SELECT column_name(s)&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;FROM table_name&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;WHERE column_name LIKE pattern&lt;/td&gt;&lt;/tr&gt;
  151. &lt;tr style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;td align=&quot;left&quot; style=&quot;margin: 0px; padding: 0px;&quot; valign=&quot;top&quot;&gt;ORDER BY&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;margin: 0px; padding: 0px;&quot; valign=&quot;top&quot;&gt;SELECT column_name(s)&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;FROM table_name&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;ORDER BY column_name [ASC|DESC]&lt;/td&gt;&lt;/tr&gt;
  152. &lt;tr style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;td align=&quot;left&quot; style=&quot;margin: 0px; padding: 0px;&quot; valign=&quot;top&quot;&gt;SELECT&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;margin: 0px; padding: 0px;&quot; valign=&quot;top&quot;&gt;SELECT column_name(s)&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;FROM table_name&lt;/td&gt;&lt;/tr&gt;
  153. &lt;tr style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;td align=&quot;left&quot; style=&quot;margin: 0px; padding: 0px;&quot; valign=&quot;top&quot;&gt;SELECT *&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;margin: 0px; padding: 0px;&quot; valign=&quot;top&quot;&gt;SELECT *&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;FROM table_name&lt;/td&gt;&lt;/tr&gt;
  154. &lt;tr style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;td align=&quot;left&quot; style=&quot;margin: 0px; padding: 0px;&quot; valign=&quot;top&quot;&gt;SELECT DISTINCT&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;margin: 0px; padding: 0px;&quot; valign=&quot;top&quot;&gt;SELECT DISTINCT column_name(s)&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;FROM table_name&lt;/td&gt;&lt;/tr&gt;
  155. &lt;tr style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;td align=&quot;left&quot; style=&quot;margin: 0px; padding: 0px;&quot; valign=&quot;top&quot;&gt;SELECT INTO&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;margin: 0px; padding: 0px;&quot; valign=&quot;top&quot;&gt;SELECT *&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;INTO new_table_name [IN externaldatabase]&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;FROM old_table_name&lt;div style=&quot;display: inline; height: auto; overflow: visible; padding: 1px 0px;&quot;&gt;
  156. &lt;i style=&quot;margin: 0px; padding: 0px;&quot;&gt;or&lt;/i&gt;&lt;/div&gt;
  157. &amp;nbsp;&lt;div style=&quot;display: inline; height: auto; overflow: visible; padding: 1px 0px;&quot;&gt;
  158. SELECT column_name(s)&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;INTO new_table_name [IN externaldatabase]&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;FROM old_table_name&lt;/div&gt;
  159. &lt;/td&gt;&lt;/tr&gt;
  160. &lt;tr style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;td align=&quot;left&quot; style=&quot;margin: 0px; padding: 0px;&quot; valign=&quot;top&quot;&gt;SELECT TOP&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;margin: 0px; padding: 0px;&quot; valign=&quot;top&quot;&gt;SELECT TOP number|percent column_name(s)&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;FROM table_name&lt;/td&gt;&lt;/tr&gt;
  161. &lt;tr style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;td align=&quot;left&quot; style=&quot;margin: 0px; padding: 0px;&quot; valign=&quot;top&quot;&gt;TRUNCATE TABLE&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;margin: 0px; padding: 0px;&quot; valign=&quot;top&quot;&gt;TRUNCATE TABLE table_name&lt;/td&gt;&lt;/tr&gt;
  162. &lt;tr style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;td align=&quot;left&quot; style=&quot;margin: 0px; padding: 0px;&quot; valign=&quot;top&quot;&gt;UNION&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;margin: 0px; padding: 0px;&quot; valign=&quot;top&quot;&gt;SELECT column_name(s) FROM table_name1&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;UNION&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;SELECT column_name(s) FROM table_name2&lt;/td&gt;&lt;/tr&gt;
  163. &lt;tr style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;td align=&quot;left&quot; style=&quot;margin: 0px; padding: 0px;&quot; valign=&quot;top&quot;&gt;UNION ALL&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;margin: 0px; padding: 0px;&quot; valign=&quot;top&quot;&gt;SELECT column_name(s) FROM table_name1&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;UNION ALL&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;SELECT column_name(s) FROM table_name2&lt;/td&gt;&lt;/tr&gt;
  164. &lt;tr style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;td align=&quot;left&quot; style=&quot;margin: 0px; padding: 0px;&quot; valign=&quot;top&quot;&gt;UPDATE&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;margin: 0px; padding: 0px;&quot; valign=&quot;top&quot;&gt;UPDATE table_name&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;SET column1=value, column2=value,...&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;WHERE some_column=some_value&lt;/td&gt;&lt;/tr&gt;
  165. &lt;tr style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;td align=&quot;left&quot; style=&quot;margin: 0px; padding: 0px;&quot; valign=&quot;top&quot;&gt;WHERE&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;margin: 0px; padding: 0px;&quot; valign=&quot;top&quot;&gt;SELECT column_name(s)&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;FROM table_name&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;WHERE column_name operator value&lt;/td&gt;&lt;/tr&gt;
  166. &lt;/tbody&gt;&lt;/table&gt;
  167. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;Select Statement&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;SELECT &quot;column_name&quot; FROM &quot;table_name&quot;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;Distinct&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;SELECT DISTINCT &quot;column_name&quot;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;FROM &quot;table_name&quot;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;Where&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;SELECT &quot;column_name&quot;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;FROM &quot;table_name&quot;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;WHERE &quot;condition&quot;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;And/Or&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;SELECT &quot;column_name&quot;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;FROM &quot;table_name&quot;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;WHERE &quot;simple condition&quot;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;{[AND|OR] &quot;simple condition&quot;}+&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;In&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;SELECT &quot;column_name&quot;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;FROM &quot;table_name&quot;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;WHERE &quot;column_name&quot; IN (&#39;value1&#39;, &#39;value2&#39;, ...)&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;Between&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;SELECT &quot;column_name&quot;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;FROM &quot;table_name&quot;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;WHERE &quot;column_name&quot; BETWEEN &#39;value1&#39; AND &#39;value2&#39;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;Like&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;SELECT &quot;column_name&quot;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;FROM &quot;table_name&quot;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;WHERE &quot;column_name&quot; LIKE {PATTERN}&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;Order By&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;SELECT &quot;column_name&quot;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;FROM &quot;table_name&quot;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;[WHERE &quot;condition&quot;]&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;ORDER BY &quot;column_name&quot; [ASC, DESC]&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;Count&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;SELECT COUNT(&quot;column_name&quot;)&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;FROM &quot;table_name&quot;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;Group By&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;SELECT &quot;column_name1&quot;, SUM(&quot;column_name2&quot;)&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;FROM &quot;table_name&quot;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;GROUP BY &quot;column_name1&quot;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;Having&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;SELECT &quot;column_name1&quot;, SUM(&quot;column_name2&quot;)&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;FROM &quot;table_name&quot;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;GROUP BY &quot;column_name1&quot;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;HAVING (arithematic function condition)&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;Create Table Statement&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;CREATE TABLE &quot;table_name&quot;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;(&quot;column 1&quot; &quot;data_type_for_column_1&quot;,&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&quot;column 2&quot; &quot;data_type_for_column_2&quot;,&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;... )&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;Drop Table Statement&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;DROP TABLE &quot;table_name&quot;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;Truncate Table Statement&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;TRUNCATE TABLE &quot;table_name&quot;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;Insert Into Statement&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;INSERT INTO &quot;table_name&quot; (&quot;column1&quot;, &quot;column2&quot;, ...)&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;VALUES (&quot;value1&quot;, &quot;value2&quot;, ...)&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;Update Statement&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;UPDATE &quot;table_name&quot;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;SET &quot;column_1&quot; = [new value]&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;WHERE {condition}&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;Delete From Statement&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;DELETE FROM &quot;table_name&quot;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;WHERE {condition}&amp;nbsp;&lt;/div&gt;
  168. &lt;/div&gt;
  169. </content><link rel='replies' type='application/atom+xml' href='http://tamilprogramminng.blogspot.com/feeds/4522888604367616994/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tamilprogramminng.blogspot.com/2013/08/sql-14.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3691376985285892436/posts/default/4522888604367616994'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3691376985285892436/posts/default/4522888604367616994'/><link rel='alternate' type='text/html' href='http://tamilprogramminng.blogspot.com/2013/08/sql-14.html' title='எளிய தமிழில் SQL - பாகம் 14'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3691376985285892436.post-8321700357205211979</id><published>2013-08-08T04:55:00.002-07:00</published><updated>2013-08-08T04:55:22.787-07:00</updated><title type='text'>எளிய தமிழில் SQL - பாகம் 13</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
  170. &lt;span style=&quot;background-color: white; font-family: Georgia, Times, serif; font-size: 13px; line-height: 20.984375px; text-align: justify;&quot;&gt;Primary key மற்றும் Foreign key ஆகியவற்றைப் பற்றியும், SQL வாயிலாக இரண்டு Tableகளை இணைப்பது எப்படி என்றும் இன்றைக்குப் பார்ப்போம்.&lt;/span&gt;&lt;br /&gt;
  171. &lt;div class=&quot;post-body entry-content&quot; style=&quot;background-color: white; font-family: Georgia, Times, serif; font-size: 13px; line-height: 20.984375px; margin: 0px; padding: 0px; text-align: justify;&quot;&gt;
  172. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;Primary key என்பது ஒரு Tableல் இருக்கும் அனைத்து Row களையும் தனித்தனியாகக் கண்டறிய உதவுகிறது. உதாரணமாக ஒரு எளிய Table. அதில் 2 Columns மட்டும். அவை DirectorID int, DirectorName varchar(50)&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;(மேலும் இது Primary keyஆகவும், Autoincrement ஆகவும் கொடுக்கப்படுகிறது. Auto increment என்பது int எனப்படும் எண்களுக்கு மட்டுமே சாத்தியப்படும்) , இந்த Tableக்கு DirectorInfo எனப் பெயரிடுவோம்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4l2bxXgnznjQqUl0HRHJuvjB8p612o8YZxIoWiKFlwt1ZlJej87MHHkjA-3fpMVl6Zi6UU9IziCpJ0jHh6vD_wJ70O6XWsPZFg5JRcmOIb1c8LF1kfuZj91KACtDGmewCJahT97snEnrn/s1600-h/DirectorInfoStructure.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5298950774897544306&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4l2bxXgnznjQqUl0HRHJuvjB8p612o8YZxIoWiKFlwt1ZlJej87MHHkjA-3fpMVl6Zi6UU9IziCpJ0jHh6vD_wJ70O6XWsPZFg5JRcmOIb1c8LF1kfuZj91KACtDGmewCJahT97snEnrn/s320/DirectorInfoStructure.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 76px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 320px;&quot; /&gt;&lt;/a&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இந்த DirectorID எனப்படும் Column ஐ Primary key ஆக மாற்ற என்ன செய்யவேண்டும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;DirectorID எனப்படும் Column ஐத் தேர்வு செய்து Right Click செய்து, தோன்றக்கூடிய சிறு menuவில் Set Primary Key என்பதைச் சொடுக்கவும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizRNmnPoLWXjmooRB6UP-rb6vDiYLQGzQmSrZaSeB2B9-oJzGTSt-G2rnvArk_iNwR-jphblwCHepStcd4dKPWPQ5FCQzBXwirvGqZVezt5-94QjOOwQDolEsmu_s7F5UsrimbY0iXAhlS/s1600-h/setprimary.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5298952022178769970&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizRNmnPoLWXjmooRB6UP-rb6vDiYLQGzQmSrZaSeB2B9-oJzGTSt-G2rnvArk_iNwR-jphblwCHepStcd4dKPWPQ5FCQzBXwirvGqZVezt5-94QjOOwQDolEsmu_s7F5UsrimbY0iXAhlS/s320/setprimary.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 81px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 320px;&quot; /&gt;&lt;/a&gt;இதைச் செய்தபிறகு DirectorID க்கு இடது புறம் ஒரு சிறிய சாவியின் படம் தெரிய ஆரம்பிக்கும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;மேலும் Identity Column ( Auto increment) ஆக மாற்றுவதற்கு என்ன செய்வது?&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;DirectorID எனப்படும் Column ஐத் தேர்வு செய்து F4 என்னும் Function keyஐ அழுத்தினால் Properties Windows ஐக் காணலாம். அதில் Table Designer என்னும் தலைப்பின் கீழே, Identity Column என்பதற்கு நேராக உள்ள Drop Downlist ல் DirectorID என்பதைத் தேர்வு செய்யவும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEioTcGtuNa4-BeHIZphmFoilg6fGDVmqICxRmM_0gPSX-gfWVHQzL0FJdGXv0adnx1AWPllx_BR5DJCyqVPTy3MEyi21yLTNY_Jb6g-Kw5Q7vGW57bnqARIH1N1vodwdFqaHpDKpm5nEvz4/s1600-h/identityF4Properties.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5298953632193171842&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEioTcGtuNa4-BeHIZphmFoilg6fGDVmqICxRmM_0gPSX-gfWVHQzL0FJdGXv0adnx1AWPllx_BR5DJCyqVPTy3MEyi21yLTNY_Jb6g-Kw5Q7vGW57bnqARIH1N1vodwdFqaHpDKpm5nEvz4/s320/identityF4Properties.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 270px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 320px;&quot; /&gt;&lt;/a&gt;அல்லது கீழ்க்கண்ட செயல்முறையைத் தொடரலாம். Identity Column ஆக மாற்ற கீழ்க்கண்ட படத்தில் உள்ளபடி செய்யலாம். அந்த Column ஐத் தேர்வுசெய்தபிறகு, கீழே உள்ள Column Properties Tab ல் , Identity Specification ஐ Yes எனக் கொடுக்கவும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvpwPje7WVIwOQbIJpxb5gQS8DG-F47ekBm0d2oyugE9tWpeodQYIdKiabc2zVNDvtjgdWBOOMaaFitlG1ckzvV0iW_6XIzihdPqesMse1qQsnARh4LPzWo9Qezx0O8ReqPUfwfkZ-aVpV/s1600-h/colProp.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5298954575845832306&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvpwPje7WVIwOQbIJpxb5gQS8DG-F47ekBm0d2oyugE9tWpeodQYIdKiabc2zVNDvtjgdWBOOMaaFitlG1ckzvV0iW_6XIzihdPqesMse1qQsnARh4LPzWo9Qezx0O8ReqPUfwfkZ-aVpV/s320/colProp.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 217px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 252px;&quot; /&gt;&lt;/a&gt;அதன் Increment , seed மதிப்புகளைக் கொடுக்கலாம். அல்லது 1 எனவே விட்டுவிடலாம். ஒவ்வொரு rowன் மதிப்பும் ஐந்து, ஐந்தாக அதிகரிக்கவேண்டும் எனில் Identity Increment ன் மதிப்பை 5 எனக் கொடுக்கவும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;சரி ஒருவழியாக DirectorsInfo வின் Structure ஐ உருவாக்கிவிட்டோம். இப்போது இதை Close செய்துவிடவும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi12fbkkzS2cGslBbDuqPGMawFCUlT3JN0Nc777JPVaqhhtzR2-iGYRaE5dwFkz_ytI7Q8OSFd9asrS0PvEasaTrd0Qo6wgsLjCGlhcNERx2eDqSJECaXjU0_Ol1CODCRt-gx6bDr2Q-OT1/s1600-h/closeStructure.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5298955974899029762&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi12fbkkzS2cGslBbDuqPGMawFCUlT3JN0Nc777JPVaqhhtzR2-iGYRaE5dwFkz_ytI7Q8OSFd9asrS0PvEasaTrd0Qo6wgsLjCGlhcNERx2eDqSJECaXjU0_Ol1CODCRt-gx6bDr2Q-OT1/s320/closeStructure.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 127px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 320px;&quot; /&gt;&lt;/a&gt;இப்போது மேலும் ஒரு எளிய Table ஒன்றை உருவாக்கி, அதற்கு FilmInfo எனப் பெயரிடுவோம்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitWVDGs2oXnig8D0cqALO8vnaLZq7KenHR4Q90rTAITZVjbAYC8dzHiaiQNywP2zWakODBSQSJYNv82o_MI5MBgnAqfxVOJpvdc4FL2ms2Af-jUpNNrG6yDTLCB8uhreuZkIY-gPo4PCT8/s1600-h/FilmInfoStructure.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5298956404471710946&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitWVDGs2oXnig8D0cqALO8vnaLZq7KenHR4Q90rTAITZVjbAYC8dzHiaiQNywP2zWakODBSQSJYNv82o_MI5MBgnAqfxVOJpvdc4FL2ms2Af-jUpNNrG6yDTLCB8uhreuZkIY-gPo4PCT8/s320/FilmInfoStructure.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 120px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 318px;&quot; /&gt;&lt;/a&gt;இந்த FilmInfo என்கிற புதிய Tableல் DirectorID என்னும் Column உள்ளது. இது int எனப்படும் எண் வகையைச் சேர்ந்த Data Type.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;ஒவ்வொரு படத்தையும் வேறு வேறு இயக்குநர்கள் இயக்கியிருக்கலாம். ஒன்றுக்கு மேற்பட்ட திரைப்படங்களை ஒரே இயக்குநரே இயக்கியிருக்கலாம்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;1000 திரைப்படங்களின் தகவல்களைச் சேகரித்தோம் எனில், அதில் ஒரே இயக்குநரானவர் 10 அல்லது 25 அல்லது 100 படங்களைக்கூட எடுத்திருப்பார். 100 முறை அவரது பெயரை எழுதினால் நினைவகம் (memory) தேவையில்லாமல் ஆக்கிரமிக்கப்படும். அதனால் அவரது பெயரை ஒரே ஒருமுறை மட்டும் Master Table ல் (இங்கே DirectorsInfo - என்பதே Master table) கொடுத்து அவருக்காக ஒரு எண்ணை ஒதுக்கி விடுகிறோம்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;பலவித திரைப்படங்களின் தகவல்களை இரண்டாவது Table (FilmInfo என்பது இங்கே Detail Table)ல் பதிவுசெய்யப் போகிறோம். இங்கே ஒவ்வொரு Directorன் பெயரை முழுவதும் எழுதி நினைவகத்தை ஆக்கிரமிக்காமல் அவருக்குரிய எண்ணை மட்டும் கொடுப்போம்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;Master Table ல் ஒவ்வொரு Director க்கும் எண்களும், பெயர்களும் கொடுத்துவிட்டு, Detail Tableல் Directorக்கு உரிய எண்ணை மட்டும் கொடுப்பது வழக்கம்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;நினைவக இழப்பைக் குறைப்பதற்காகவும், ஒரே தகவலை திரும்பத்திரும்ப எழுதுவதைத் தவிர்க்கவும் - இந்த ஏற்பாடு.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;ஒரு Director ஆனவர் பல படங்களை எடுத்துள்ளார் - எனில் இதை ONE TO MANY RELATIONSHIP என்போம்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இந்த இரண்டாவது Tableன் Structureஐ ஏற்றிமுடித்ததும் கீழ்க்கண்ட செயல்முறையைச் செய்து இரண்டு Tableகளுக்கும் ஒரு உறவுமுறையை உண்டாக்கவும். உறவுமுறை (Table Relationship).&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;Test எனப்படும் Databaseல் Database Diagrams என்பதைத் தேர்வுசெய்து, Right Click செய்து, அதில் New Database Diagram ஐத் தேர்ந்தெடுக்கவும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh62lKzv_VCr8xS2S0mZBvkXoNMzdSYChm3KUwfN0dNOqPpeGIoOJQLbtXb-SY8OmUZ9f3It7zmFBYhOkW0iKwCwjl9fzJEYtU_UtqwkI2n6m3o8OupisiyuebywXm8zPtyGhF9a3bjRs2d/s1600-h/newDBdiag.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5298959013592708242&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh62lKzv_VCr8xS2S0mZBvkXoNMzdSYChm3KUwfN0dNOqPpeGIoOJQLbtXb-SY8OmUZ9f3It7zmFBYhOkW0iKwCwjl9fzJEYtU_UtqwkI2n6m3o8OupisiyuebywXm8zPtyGhF9a3bjRs2d/s320/newDBdiag.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 104px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 312px;&quot; /&gt;&lt;/a&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;உடன் தெரியும் உரையாடல் பெட்டியில் (dialog box) , DirectorsInfo மற்றும், FilmInfo ஆகிய இரண்டு Tableகளையும் தேர்வு செய்து , Add ஐ அழுத்தியபிறகு, Close அழுத்தவும்.&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEieNqDuj0zZ6ljf0pk_DKgZ3hQQpEw4NlAo33eEprUOIGSklUXcihRRRKn5Ns3oH5_T5sjZc8OzOyvs5f2H_G3_2hU3yiAXXX3SGQCY3ugutpouAvoxB9OIanB4fVDPyPPF85_SO4cfvaWZ/s1600-h/setrelation.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5298960463081737314&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEieNqDuj0zZ6ljf0pk_DKgZ3hQQpEw4NlAo33eEprUOIGSklUXcihRRRKn5Ns3oH5_T5sjZc8OzOyvs5f2H_G3_2hU3yiAXXX3SGQCY3ugutpouAvoxB9OIanB4fVDPyPPF85_SO4cfvaWZ/s320/setrelation.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 251px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 320px;&quot; /&gt;&lt;/a&gt;இப்போது திரை கீழ்க்கண்டவாறு காட்சியளிக்கும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiLXjXwI80qx8o5uwR2b7GBgNnm6nMh73XD1lkXXJHq2ctrRtyveurU2CFeYv_D3-zZQiEvITyfqRaLa_Rm1X1o3o8HowxfBh2kikKaGj1sbEoTctyjOB3-oompeSbbXbACSkWTVImkLlPk/s1600-h/beforejoin.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5298961613327038002&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiLXjXwI80qx8o5uwR2b7GBgNnm6nMh73XD1lkXXJHq2ctrRtyveurU2CFeYv_D3-zZQiEvITyfqRaLa_Rm1X1o3o8HowxfBh2kikKaGj1sbEoTctyjOB3-oompeSbbXbACSkWTVImkLlPk/s320/beforejoin.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 106px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 320px;&quot; /&gt;&lt;/a&gt;DirectorsInfo ல் இருக்கும் DirectorID ஐ அப்படியே இழுத்துக்கொண்டு வந்து, FilmInfo வில் இருக்கும் DirectorIDல் விடவும். அதாவது Master Tableன் DirectorID ஐ Drag செய்து, Detail Table ல் இருக்கும் DirectorIDல் Drop செய்யவும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;எளிதான Drag and Drop தான்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXLPAQgbFEdVMMliuXe68xxYrZd_RBvBoCjsvgA-XPlGxssZtF_hQYIVv7s4o57pP9SGqpt9vZFcZgrW9hKwjiWnX1_LYTrOG8ZqW2XatpBeoS9ixFjIYVnTersSNSVrVidLcGRJpBejdq/s1600-h/merge.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5298962340161039874&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXLPAQgbFEdVMMliuXe68xxYrZd_RBvBoCjsvgA-XPlGxssZtF_hQYIVv7s4o57pP9SGqpt9vZFcZgrW9hKwjiWnX1_LYTrOG8ZqW2XatpBeoS9ixFjIYVnTersSNSVrVidLcGRJpBejdq/s320/merge.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 94px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 320px;&quot; /&gt;&lt;/a&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இப்போது திரையில் மேற்கண்ட படம் தெரியும். Primary key Table (Director Info).&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;Foreign Key Table (FilmInfo). இரண்டுமே DirectorID என்னும் Column ஆகவும், ஒரே DataTypeஆகவும் இருக்கிறது. பிறகு இரண்டு முறை OK கொடுக்கவும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இப்போது திரையில் கீழ்க்கண்ட படத்தைக் காணலாம்.&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUbpiQ1Xq8dVHU3vRwZ2fFujtYRaiYmRYvsip9cN-aVVHvOGvYkOGfLMnVVTvbv_N9T6d4VimuHgUcz41QyF3bimyllM2-TPGFFxZfIpyrDjXoESi0P3R42EXHO2bmQxfgtNwMZx3-HdPh/s1600-h/afterrelation.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5298962966167548258&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUbpiQ1Xq8dVHU3vRwZ2fFujtYRaiYmRYvsip9cN-aVVHvOGvYkOGfLMnVVTvbv_N9T6d4VimuHgUcz41QyF3bimyllM2-TPGFFxZfIpyrDjXoESi0P3R42EXHO2bmQxfgtNwMZx3-HdPh/s320/afterrelation.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 130px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 320px;&quot; /&gt;&lt;/a&gt;இந்த Database Diagram ஐ Close செய்துவிட்டு, Tableக்குரிய தகவல்களை ஒவ்வொரு Row ஆக ஏற்றவும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;DirectorsInfo வில் முதலில் உங்களுக்குத் தெரிந்த Directorsன் பெயர்களை மட்டும் கொடுத்தால் போதும். DirectorID என்பது அதுவாகவே உருவாகிக்கொள்ளும். அடுத்தடுத்த Directorகளுக்குரிய எண்கள் தானாகவே அமைந்துகொள்ளும். இதற்கு காரணம் அந்த குறிப்பிட்ட Column ஆனது IDENTITY Column என அமைக்கப்பட்டுள்ளதே.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;பிறகு ஒவ்வொரு படங்களுக்கும் உரிய தகவல்களை Row by Row வாக FilmInfo என்னும் Tableல் ஏற்றவும். இங்கே DirectorIDஎன்னும் Columnல் ஏற்கனவே Master Tableல் என்ன எண்கள் அளிக்கப்பட்டிருக்கிறதோ அவற்றை மாத்திரமே கொடுக்கவேண்டும். Master Tableல் இல்லாத DirectorID ஐக் கொடுத்தால் பிழைச்செய்தி காண்பிக்கும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;உதாரணத்திற்காக DirectorInfoவில் சில records உங்கள் பார்வைக்கு.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJzf2Vw_y0LAu0z3AowHBM7-m9gbhVkBcKuG8MTa_1ngth7bIa5SneSllP173TtshsrYCAPi3UehkYoZ6UFdRzvtcicjY7mN7deVnTW6la8vACfZs8_wxkhrz6W-YrFKbU1g4OZhY9u3Ak/s1600-h/DirectorInfo.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5298964561414444882&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJzf2Vw_y0LAu0z3AowHBM7-m9gbhVkBcKuG8MTa_1ngth7bIa5SneSllP173TtshsrYCAPi3UehkYoZ6UFdRzvtcicjY7mN7deVnTW6la8vACfZs8_wxkhrz6W-YrFKbU1g4OZhY9u3Ak/s320/DirectorInfo.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 122px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 241px;&quot; /&gt;&lt;/a&gt;FilmInfo எனப்படும் Detail Tableல் நான் ஏற்றிய சில Records கீழே.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyj8YBERvz4H4KJ5sxpOXqkH8XASTQll8jW4GphtOgVVNs301QGiyVqiEfoGTgGoXMtl3adMYKLtv5uKb5CNCTP8ng_nD7xDRNyKIKalub8J6EzxO9FmXoQFu0EqpQaDaTYalBZZjQXUqB/s1600-h/sampledetails.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5298966452228445794&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyj8YBERvz4H4KJ5sxpOXqkH8XASTQll8jW4GphtOgVVNs301QGiyVqiEfoGTgGoXMtl3adMYKLtv5uKb5CNCTP8ng_nD7xDRNyKIKalub8J6EzxO9FmXoQFu0EqpQaDaTYalBZZjQXUqB/s320/sampledetails.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 165px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 320px;&quot; /&gt;&lt;/a&gt;இதில் Master Table ல் என்ன DirectorID கொடுத்தோமோ அதை Detail Tableல் refer செய்கிறோம். ஒவ்வொரு படத்துக்கும் அதை இயக்கிய இயக்குநரின் பெயரைக் கொடுக்காமல், அவருக்குரிய ID எனப்படும் எண்ணை மட்டும் கொடுக்கிறோம்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இரண்டு Tableஐயும் இணைத்து JOIN செய்வதற்கு உரிய செயல்முறை கீழே:&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;T-SQL Editorல் Right Click செய்து, Design Query in Editor என்பதைத் தேர்வு செய்யவும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5o4FHEOJW3Jm_AFhCXyh62LmbM6QrvnC5GVNJyBoYGmeJ4AvPgcQSO-rboBlsinblKuqRozKsjK317xeXpIwuZBQ8cRHmLB-FlzNObsIp4mIDirrGJgr-Aha0OobFzCHIhnbPr3g2LN13/s1600-h/designqueryeditor.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5298967552670741682&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5o4FHEOJW3Jm_AFhCXyh62LmbM6QrvnC5GVNJyBoYGmeJ4AvPgcQSO-rboBlsinblKuqRozKsjK317xeXpIwuZBQ8cRHmLB-FlzNObsIp4mIDirrGJgr-Aha0OobFzCHIhnbPr3g2LN13/s320/designqueryeditor.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 293px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 320px;&quot; /&gt;&lt;/a&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;பிறகு வரும் Dialog boxல் இரண்டு Tablesஐயும் தேர்வு செய்து Add கொடுத்தபின் Close செய்யவும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-fjknZ-OoyUxfrfYVk9nn7nITjk75j-MEu69nVrsSBsyUB3qR3npDMQRnA4PAB93q_Yf_t1yk0pnzf9tUoqtQ5cYejCUjkDkMbJ__-m7RX4oWekwL7o5MUJOKCLVohXG9b6gLkOVPdQBo/s1600-h/add2tables.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5298967976309837490&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-fjknZ-OoyUxfrfYVk9nn7nITjk75j-MEu69nVrsSBsyUB3qR3npDMQRnA4PAB93q_Yf_t1yk0pnzf9tUoqtQ5cYejCUjkDkMbJ__-m7RX4oWekwL7o5MUJOKCLVohXG9b6gLkOVPdQBo/s320/add2tables.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 249px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 320px;&quot; /&gt;&lt;/a&gt;ஏற்கனவே Primary key, மற்றும் Foreign key ஆகியவை முறைப்படி இணைக்கப்பட்டிருந்தால் கீழ்க்கண்ட படம் திரையில் காட்சியளிக்கும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrIUGUmvuO7Z9X3IFsb3WAGewcOJNNqXG55GboOJW5GAyHvzDUCCHgwuJX3tWHDz5w3uTS1nAWnvzgXJ7uljx2A8D3bB76XglJnqG7zvIXSQmXtZiSeoVFoG_-uhYrRVcH8BENpkvRAhbF/s1600-h/screen.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5298968422351045666&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrIUGUmvuO7Z9X3IFsb3WAGewcOJNNqXG55GboOJW5GAyHvzDUCCHgwuJX3tWHDz5w3uTS1nAWnvzgXJ7uljx2A8D3bB76XglJnqG7zvIXSQmXtZiSeoVFoG_-uhYrRVcH8BENpkvRAhbF/s320/screen.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 109px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 320px;&quot; /&gt;&lt;/a&gt;இரண்டு Tableகளிலிருந்து எந்தெந்த Columnsஐ நாம் தேர்ந்தெடுக்கிறோம் என்பதை ஒவ்வொரு Columnக்கும் எதிரேயுள்ள Checkbox ல் Tick செய்துவிடுங்கள்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8rbdcUGGHJRu5c8oQwA-6sNus258br2C6exEyC7HGG44Ey-O6uRcN8u1q3MBnY-UVXbOUMbzekJ5X0jJhdl8Go9Y59ARNwY00NEjQQ_0pDJxefgEX26PmFzBDPNKg9B42-pMWhn-lGFJC/s1600-h/fieldselection.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5298969314509893890&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8rbdcUGGHJRu5c8oQwA-6sNus258br2C6exEyC7HGG44Ey-O6uRcN8u1q3MBnY-UVXbOUMbzekJ5X0jJhdl8Go9Y59ARNwY00NEjQQ_0pDJxefgEX26PmFzBDPNKg9B42-pMWhn-lGFJC/s320/fieldselection.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 138px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 320px;&quot; /&gt;&lt;/a&gt;இப்படி Columnகளைத் தேர்வுசெய்தவுடன் உங்களுக்குக் கீழ்க்கண்ட Query கிடைக்கும்&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;SELECT DirectorsInfo.DirectorName, FilmInfo.FilmName, FilmInfo.Actor, FilmInfo.Actress&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;FROM DirectorsInfo INNER JOIN&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;FilmInfo ON DirectorsInfo.DirectorID = FilmInfo.DirectorID&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;பின் OK அழுத்தினால் மேலேயுள்ள Query ஆனது T-SQL Editorக்கு வந்துவிடும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;F5 அழுத்தின் இயக்கவும். இதன் மூலம் இரண்டு Tableன் தகவல்களும் ஒரே திரையில் காண்பிக்கப்படும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvsOsbVhbSwmRj7TOvhl73_nV7uwoRtaCOlOLl9I3fKZnJQqQL9rShJkd9GkLIknWHT3Z2B2pdPajPmeLt9ZQ7zW9GgVpKoECwhreC1iHFkDv7hHNQ91unkWYQt_mCYYG29rE6SUswcuos/s1600-h/aftermerge.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5298969994592783138&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvsOsbVhbSwmRj7TOvhl73_nV7uwoRtaCOlOLl9I3fKZnJQqQL9rShJkd9GkLIknWHT3Z2B2pdPajPmeLt9ZQ7zW9GgVpKoECwhreC1iHFkDv7hHNQ91unkWYQt_mCYYG29rE6SUswcuos/s320/aftermerge.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 191px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 320px;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
  173. &lt;div&gt;
  174. &lt;br /&gt;&lt;/div&gt;
  175. &lt;/div&gt;
  176. </content><link rel='replies' type='application/atom+xml' href='http://tamilprogramminng.blogspot.com/feeds/8321700357205211979/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tamilprogramminng.blogspot.com/2013/08/sql-13.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3691376985285892436/posts/default/8321700357205211979'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3691376985285892436/posts/default/8321700357205211979'/><link rel='alternate' type='text/html' href='http://tamilprogramminng.blogspot.com/2013/08/sql-13.html' title='எளிய தமிழில் SQL - பாகம் 13'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4l2bxXgnznjQqUl0HRHJuvjB8p612o8YZxIoWiKFlwt1ZlJej87MHHkjA-3fpMVl6Zi6UU9IziCpJ0jHh6vD_wJ70O6XWsPZFg5JRcmOIb1c8LF1kfuZj91KACtDGmewCJahT97snEnrn/s72-c/DirectorInfoStructure.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3691376985285892436.post-2582656357476967516</id><published>2013-08-08T04:54:00.005-07:00</published><updated>2013-08-08T04:54:51.876-07:00</updated><title type='text'>எளிய தமிழில் SQL - பாகம் 12</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
  177. &lt;h3 class=&quot;post-title entry-title&quot; style=&quot;background-color: white; font-family: Times, serif; font-size: 31px; font-weight: normal; line-height: 1.4em; margin: 0px; padding: 0px;&quot;&gt;
  178. &lt;span style=&quot;color: #009900; font-family: Georgia, Times, serif; font-size: 13px; font-weight: bold; line-height: 20.984375px; text-align: center;&quot;&gt;SELECT உடன் ஒரு செயல்முறைப் பயிற்சி&lt;/span&gt;&lt;/h3&gt;
  179. &lt;div class=&quot;post-body entry-content&quot; style=&quot;background-color: white; font-family: Georgia, Times, serif; font-size: 13px; line-height: 20.984375px; margin: 0px; padding: 0px; text-align: justify;&quot;&gt;
  180. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;SELECT * FROM tableName&lt;/span&gt;&amp;nbsp;என்பது ஒரு Tableல் இருக்கும் அனைத்து Rowsஐயும் திரையில் காண்பிக்க, தேடி எடுக்க.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இதில் குறிப்பிட்ட Rowsஐ மாத்திரம் எடுப்பதற்கு என்ன செய்யவேண்டும். ஒரு WHERE ஐ இணைத்தால் போதும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;SELECT * FROM tableName WHERE Condition&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;Condition என்பதைக் கட்டுப்பாடு எனக் கொண்டால் ஒன்றுக்கு மேற்பட்ட கட்டுப்பாடுகளை விதிக்க என்ன செய்ய வேண்டும்?&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;SELECT * FROM tableName WHERE Condition1 AND Condition2 AND Condition3&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;AND என்னும் Logical Operator ஐ உடன் சேர்த்துப் பயன்படுத்த வேண்டும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;SELECT * FROM என்று கொடுத்தால் அனைத்து Columns ஐயும் நாம் பார்ப்பதற்காக தேர்வு செய்கிறோம் என்று அர்த்தம்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இதில் குறிப்பிட்ட Columnsஐ மாத்திரம் பார்க்கவேண்டுமென்றால் என்ன செய்வது?&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;SELECT Column1, Column2, Column3 FROM tableName&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;SELECT column_name(s) FROM table_name&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;உதாரணம்:&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;SELECT [Name], [City] FROM Persons&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;கீழ்க்கண்ட Tableன் தகவல்களை உற்று நோக்கவும். இதில் City என்னும் இடத்தில் 3 நகரங்கள் உள்ளன. Chennai, Erode, USA. ஆனால் Chennai,Erode ஆகியவை இரண்டுமுறையும், USA - ஒருமுறையும் இடம் பெற்றுள்ளது.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEik6Z3X7-9V8d4B3bHXAZb9veCmhq8uJYRaohm1E4ggVXHYJ2SZDC42jMfLgXZzmUQp_Z4n7eb_Nq761fzfa04UV9duIdcVGgxVA-ZPELUcK2gXo2YImNMoT6HyY1eZuWthMf27TTqTiQGF/s320/allcaps.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEik6Z3X7-9V8d4B3bHXAZb9veCmhq8uJYRaohm1E4ggVXHYJ2SZDC42jMfLgXZzmUQp_Z4n7eb_Nq761fzfa04UV9duIdcVGgxVA-ZPELUcK2gXo2YImNMoT6HyY1eZuWthMf27TTqTiQGF/s320/allcaps.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 139px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 206px;&quot; /&gt;&lt;/a&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;pre style=&quot;padding: 0px;&quot;&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;SELECT [CITY] FROM MyList &lt;/span&gt;எனக் கொடுத்தால் அனைத்து நகரங்களும் வரும்.&lt;/pre&gt;
  181. &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHjF4_RqzX_rDGd9wwN_fC26wlQ019Fx1qQ1_CSVYISBu5Y6XbNNZ5XCaXxQG4XkquPYqmfR3Gxwpn-st5jdDBMiqjnkT5dqtUaaoJ4SpFa1JcePR6b_y_wa_6d5LdFnbgpIFNIEX8PvHQ/s1600-h/allcities.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5298611794545466642&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHjF4_RqzX_rDGd9wwN_fC26wlQ019Fx1qQ1_CSVYISBu5Y6XbNNZ5XCaXxQG4XkquPYqmfR3Gxwpn-st5jdDBMiqjnkT5dqtUaaoJ4SpFa1JcePR6b_y_wa_6d5LdFnbgpIFNIEX8PvHQ/s320/allcities.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 113px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 87px;&quot; /&gt;&lt;/a&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;ஆனால் இதில் திரும்பத்திரும்ப வரும் நகரங்களை விட்டுவிட்டு, ஒன்றுக்கு மேற்பட்டு வந்திருப்பவைகளை ஒரே ஒரு முறை மட்டும் காண்பிப்பதற்கு DISTINCT உதவும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;SELECT DISTINCT [CITY] FROM MyList&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJTXcGqRi1BSPiIMyKrPMqfOjbaL36YoaguuVdbfgPb1GsSw1D34_rSn5ChnegvN1Wob2HNw57CyuSc6se8vbDmrYhKHEA59RX0w7Aca46tuAswDgO2PkbisRwPEElkXNrwN6Uu-7tCpha/s1600-h/distinctcities.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5298612289794092290&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJTXcGqRi1BSPiIMyKrPMqfOjbaL36YoaguuVdbfgPb1GsSw1D34_rSn5ChnegvN1Wob2HNw57CyuSc6se8vbDmrYhKHEA59RX0w7Aca46tuAswDgO2PkbisRwPEElkXNrwN6Uu-7tCpha/s320/distinctcities.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 74px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 87px;&quot; /&gt;&lt;/a&gt;குறிப்பிட்ட நகரத்தை மட்டும் காண்பதற்கு இதில் WHERE பயன்படுத்துவோம்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;pre style=&quot;padding: 0px;&quot;&gt;SELECT column_name(s)
  182. FROM table_name
  183. WHERE column_name operator value
  184.  
  185. &lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;SELECT * FROM MyList WHERE City =&#39;Erode&#39;&lt;/span&gt;
  186. ஈரோடு நகர் நண்பர்களைப் பற்றி மட்டும் காண்பதற்கு
  187. &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiI_xOixWtwYCEjFGpkkojkqJ07f5KXGZ97tzowm44eEzMpruA7ttFxYxuNI9s3P26G-PC4j0qK76Eo_doNyhyphenhyphenST3Qia50sNQ_8Qbi2uHde3BV1odofYay-16j7yWlmFAniUdilKxaHeM8x/s1600-h/erodeonly.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5298613016990427378&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiI_xOixWtwYCEjFGpkkojkqJ07f5KXGZ97tzowm44eEzMpruA7ttFxYxuNI9s3P26G-PC4j0qK76Eo_doNyhyphenhyphenST3Qia50sNQ_8Qbi2uHde3BV1odofYay-16j7yWlmFAniUdilKxaHeM8x/s320/erodeonly.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 57px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 186px;&quot; /&gt;&lt;/a&gt;நமது தேர்வில் ஒன்றுக்குமேற்பட்ட நகரத்தைக் காண்பதற்கு OR பயன்படுத்துவோம்
  188.  
  189. அமெரிக்கா மற்றும், சென்னை - இவற்றைத்  தேர்வு செய்வதற்கு :
  190.  
  191. &lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;SELECT * FROM MyList WHERE City =&#39;USA&#39; OR City  = &#39;Chennai&#39;&lt;/span&gt;
  192. &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQxC3JApj4ZodQxGIX7OfGgMpNYjd3oH5OiyTC5Y1r2Sba_TLw3AlyNG6kHVmV3iddoRBrq7Oqu6NCJKEUqURzSWONGQXBew1noBIck9X4irmUdCyl3ejwP92I0lc1zZtOYa7QNaIjnsYG/s1600-h/usawithchennai.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5298613544481232978&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQxC3JApj4ZodQxGIX7OfGgMpNYjd3oH5OiyTC5Y1r2Sba_TLw3AlyNG6kHVmV3iddoRBrq7Oqu6NCJKEUqURzSWONGQXBew1noBIck9X4irmUdCyl3ejwP92I0lc1zZtOYa7QNaIjnsYG/s320/usawithchennai.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 77px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 190px;&quot; /&gt;&lt;/a&gt;&lt;/pre&gt;
  193. இதையே வேறு விதமாக OR பயன்படுத்தாமல் எழுதலாம். அதற்கு IN பயன்படுத்தவேண்டும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;SELECT * FROM MyList WHERE City IN (&#39;USA&#39; ,&#39;Chennai&#39;)&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இதற்கும் அதே விடைதான்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;சென்னை நீங்கலாக உள்ள நகரங்களில் இருக்கும் நண்பர்களின் பட்டியலைப் பார்வையிட:&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இதற்கு NOT பயன்படுத்தலாம். NOT என்பது Logical Operator வகையைச் சார்ந்தது.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&amp;lt;&amp;gt; , != என்பது Relational Operator வகையைச் சேர்ந்தது.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;அ) SELECT * FROM MyList WHERE City &amp;lt;&amp;gt; &#39;Chennai&#39;&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;ஆ) SELECT * FROM MyList WHERE City != &#39;Chennai&#39;&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;இ) SELECT * FROM MyList WHERE City NOT IN (&#39;Chennai&#39;)&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;அனைத்துக்கும் ஒரே விடைதான். அது கீழே. சென்னையைத் தவிர.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYZU66IZQdELcYzdhz9r7-MyfDS-W9GwL0uDF8Ikffo3pAP0R1tZA9IhT9_R2VMBaxjxxS7XDs2Ad4LXzpvS-zdn9ARDznoLm7V4OSfJ2K7XEEok4-FB0yNpPT28WiB-RV4WMK3vTlBhrN/s1600-h/exceptchennai.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5298614827431198242&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYZU66IZQdELcYzdhz9r7-MyfDS-W9GwL0uDF8Ikffo3pAP0R1tZA9IhT9_R2VMBaxjxxS7XDs2Ad4LXzpvS-zdn9ARDznoLm7V4OSfJ2K7XEEok4-FB0yNpPT28WiB-RV4WMK3vTlBhrN/s320/exceptchennai.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 76px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 185px;&quot; /&gt;&lt;/a&gt;யாருடைய பெயரில் n என்கிற எழுத்து உள்ளது என்பதை அறிவதற்கு :&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;SELECT * FROM MyList WHERE [Name] LIKE &#39;%n%&#39;&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhiSNgo7VqSMN5MqSBK5zugk58gMF7V2ZmA1cJ50HeXMa72yn3ih-XLwt4g4-vfAfezuJY6p1T70ZazlbDcpG20R4YJnzQmUTLtF1rpkFcsUfhOwvahdUyPPQZbpY_UNUoEc8q6oBskxj02/s1600-h/insideN.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5298615690564414738&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhiSNgo7VqSMN5MqSBK5zugk58gMF7V2ZmA1cJ50HeXMa72yn3ih-XLwt4g4-vfAfezuJY6p1T70ZazlbDcpG20R4YJnzQmUTLtF1rpkFcsUfhOwvahdUyPPQZbpY_UNUoEc8q6oBskxj02/s320/insideN.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 58px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 197px;&quot; /&gt;&lt;/a&gt;LIKE எனப்படும் keywordன் பயன் யாதெனில், குறிப்பிட்ட எழுத்துகளைக் கொண்ட தகவல்களை மட்டும் தேர்வு செய்வது&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;%n% எனில் ஏதோ ஒரு எழுத்து n ஆக இருக்கும் நபர்கள்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;_ என்பது&amp;nbsp;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;underscore&amp;nbsp;&lt;/span&gt;(அடிக்கோடு), இது ஒரு எழுத்தை மட்டும் எதைக்கொண்டாவது நிரப்பிக்கொள் என்பதற்காக. % என்பது மீதமுள்ள அனைத்து எழுத்துக்களையும் நிரப்பிக்கொள் என்பதே. இவற்றிற்கு Wild Card Characters என்று பெயர்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;SELECT * FROM MyList WHERE [Name] LIKE &#39;_a%&#39;&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;முதல் எழுத்து எதுவாக இருந்தாலும் பரவாயில்லை. ஆனால் இரண்டாம் எழுத்து கண்டிப்பாக &#39;a&#39;. மீதியுள்ள எழுத்துக்களைப் பற்றிக் கவலையில்லை. அதற்காக.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;சுருங்கச் சொன்னால் யாருடைய பெயரில், இரண்டாம் எழுத்து a ஆக இருக்கிறது.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;pre style=&quot;padding: 0px;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiI_xOixWtwYCEjFGpkkojkqJ07f5KXGZ97tzowm44eEzMpruA7ttFxYxuNI9s3P26G-PC4j0qK76Eo_doNyhyphenhyphenST3Qia50sNQ_8Qbi2uHde3BV1odofYay-16j7yWlmFAniUdilKxaHeM8x/s1600-h/erodeonly.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5298613016990427378&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiI_xOixWtwYCEjFGpkkojkqJ07f5KXGZ97tzowm44eEzMpruA7ttFxYxuNI9s3P26G-PC4j0qK76Eo_doNyhyphenhyphenST3Qia50sNQ_8Qbi2uHde3BV1odofYay-16j7yWlmFAniUdilKxaHeM8x/s320/erodeonly.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 57px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 186px;&quot; /&gt;&lt;/a&gt;&lt;/pre&gt;
  194. Person# ல் 1,3,5 ஆகியோர்களைத் தேர்வு செய்வதற்கு:&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;SELECT * FROM MyList WHERE [Person#] = 1 OR [Person#] = 2 OR [Person#] = 3&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIm-BqB2FfF7UCo97wetv5aZnvAaPW4m0r0n97Ao9VBlD0qY0JiR_jSdsDyEt9S8osxYN9nbQAZKvea_swUc9O2WUUaOtMHnyh8lQo9QNCrYEbP-6NzKfwPGYWEBOYUGVLezvUEg1fqTGP/s1600-h/135.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5298618264684684818&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIm-BqB2FfF7UCo97wetv5aZnvAaPW4m0r0n97Ao9VBlD0qY0JiR_jSdsDyEt9S8osxYN9nbQAZKvea_swUc9O2WUUaOtMHnyh8lQo9QNCrYEbP-6NzKfwPGYWEBOYUGVLezvUEg1fqTGP/s320/135.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 75px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 153px;&quot; /&gt;&lt;/a&gt;OR என்பது எதாவது ஒரு Condition ஏற்றுக்கொண்டாலும் ஒத்துழைக்கக்கூடியது&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இதை IN மூலம் எழுதினால்,&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;SELECT * FROM MyList WHERE [Person#] IN (1,3,5)&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;1,3,5 இவற்றைத் தவிர பிற Rowsகளைப் பார்க்க :&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;அதாவது 2, மற்றும் 4 ஆகியவற்றை மட்டும் பார்க்க&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;SELECT * FROM MyList WHERE [Person#] NOT IN (1,3,5)&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;அல்லது&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;SELECT * FROM MyList WHERE [Person#] != 1 AND [Person#] != 3 AND [Person#] !=5&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;அல்லது&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;SELECT * FROM MyList WHERE [Person#] &amp;lt;&amp;gt; 1 AND [Person#] &amp;lt;&amp;gt; 3 AND [Person#] &amp;lt;&amp;gt; 5&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgk_QCi37bBOOAODrNjQwexGwBH_wMXG2tvPkqqfPs0lxF630ZVdH9VZS83NUJh5MpwP7Js2wlI-1HS-7JZxIDq8_-Rw_7Ts9GW1OYzymr6qWgpExXlWfAJgFdJJdkS4BCWKcQIePfIYwBE/s1600-h/24.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5298618900580010754&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgk_QCi37bBOOAODrNjQwexGwBH_wMXG2tvPkqqfPs0lxF630ZVdH9VZS83NUJh5MpwP7Js2wlI-1HS-7JZxIDq8_-Rw_7Ts9GW1OYzymr6qWgpExXlWfAJgFdJJdkS4BCWKcQIePfIYwBE/s320/24.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 57px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 169px;&quot; /&gt;&lt;/a&gt;SELECT * FROM MyList எனக் கொடுக்கிறேன்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இதன் விடை&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMVqlH2Z9HyZ0UszRFSy69ilH_O1ccg_WoJw_dbFTLuzQghHSR2LgoZD5UEA2RL9ZGDn2MBbr7X-63cn18TOpZ9ofImdIjA2RQIupyOzmXS2RUb5PzRpLHJGKSiz0qVNlTUDTJKLDbsmtT/s1600-h/allstar.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5298620304375675778&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMVqlH2Z9HyZ0UszRFSy69ilH_O1ccg_WoJw_dbFTLuzQghHSR2LgoZD5UEA2RL9ZGDn2MBbr7X-63cn18TOpZ9ofImdIjA2RQIupyOzmXS2RUb5PzRpLHJGKSiz0qVNlTUDTJKLDbsmtT/s320/allstar.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 119px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 199px;&quot; /&gt;&lt;/a&gt;இதில் பெயர்களை மையமாகக் கொண்டு ஏறுவரிசை (ascending), அல்லது இறங்குவரிசை (descending) ஆகக் காண்பிப்பதற்கு என்ன செய்வது?&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இதற்காக SELECT உடன் ORDER BY எனப்படும் keyword ஐப் பயன்படுத்தவேண்டும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;ASC எனக் கொடுத்தால் ஏறுவரிசையாகவும், DESC எனக் கொடுத்தால் இறங்குவரிசையாகவும் காட்சியளிக்கும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;SELECT * FROM MyList ORDER BY [Name] ASC&lt;/span&gt;&amp;nbsp;(ஏறுவரிசையில் பார்க்க)&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizJxvTUlCbvx9KNdNrbvCm7DMpkGW9x-3KWtoHMuIPkG5akaM_uvR1OPMwaGX2sZZTNedpUG4YSGXaGx58YAn5lhMj5Ws7EVaDTz51O2UTpaZi5kud0h_vKOR28kvBkpqNKs5t8WwVq0bH/s1600-h/ASC.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5298620703333580834&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizJxvTUlCbvx9KNdNrbvCm7DMpkGW9x-3KWtoHMuIPkG5akaM_uvR1OPMwaGX2sZZTNedpUG4YSGXaGx58YAn5lhMj5Ws7EVaDTz51O2UTpaZi5kud0h_vKOR28kvBkpqNKs5t8WwVq0bH/s320/ASC.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 112px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 165px;&quot; /&gt;&lt;/a&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;SELECT * FROM MyList ORDER BY [Name] DESC&lt;/span&gt;&amp;nbsp;(இறங்குவரிசையில் காண)&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLv7Da_Op_I5-2ePAfxpUxH2qeM5fr5YcIaW0I7weWMnTE36vbZ7Q7S1iDJOh6oKwiENx07aFTWmfVhBtAf-2E8o2jg3nsT6wUchXkk2YAs6E702TVbndM7iOsnQ0sjUtdjIkpgZg9IRcY/s1600-h/desc.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5298621144229844738&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLv7Da_Op_I5-2ePAfxpUxH2qeM5fr5YcIaW0I7weWMnTE36vbZ7Q7S1iDJOh6oKwiENx07aFTWmfVhBtAf-2E8o2jg3nsT6wUchXkk2YAs6E702TVbndM7iOsnQ0sjUtdjIkpgZg9IRcY/s320/desc.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 114px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 167px;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
  195. &lt;div&gt;
  196. &lt;br /&gt;&lt;/div&gt;
  197. &lt;/div&gt;
  198. </content><link rel='replies' type='application/atom+xml' href='http://tamilprogramminng.blogspot.com/feeds/2582656357476967516/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tamilprogramminng.blogspot.com/2013/08/sql-12.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3691376985285892436/posts/default/2582656357476967516'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3691376985285892436/posts/default/2582656357476967516'/><link rel='alternate' type='text/html' href='http://tamilprogramminng.blogspot.com/2013/08/sql-12.html' title='எளிய தமிழில் SQL - பாகம் 12'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEik6Z3X7-9V8d4B3bHXAZb9veCmhq8uJYRaohm1E4ggVXHYJ2SZDC42jMfLgXZzmUQp_Z4n7eb_Nq761fzfa04UV9duIdcVGgxVA-ZPELUcK2gXo2YImNMoT6HyY1eZuWthMf27TTqTiQGF/s72-c/allcaps.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3691376985285892436.post-433959291756216337</id><published>2013-08-08T04:54:00.002-07:00</published><updated>2013-08-08T04:54:21.044-07:00</updated><title type='text'>எளிய தமிழில் SQL - பாகம் 11</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
  199. &lt;h3 class=&quot;post-title entry-title&quot; style=&quot;background-color: white; font-family: Times, serif; font-size: 31px; font-weight: normal; line-height: 1.4em; margin: 0px; padding: 0px;&quot;&gt;
  200. &lt;span style=&quot;font-family: Georgia, Times, serif; font-size: 13px; line-height: 20.984375px;&quot;&gt;இன்று ஒரு சிறிய செயல்முறைப் பயிற்சியை மேற்கொள்வோம். இதற்காக நாம் ஒரு புதிய Tableஐ உருவாக்குவோம். அதற்குரிய Structure கீழே :&lt;/span&gt;&lt;/h3&gt;
  201. &lt;div class=&quot;post-body entry-content&quot; style=&quot;background-color: white; font-family: Georgia, Times, serif; font-size: 13px; line-height: 20.984375px; margin: 0px; padding: 0px; text-align: justify;&quot;&gt;
  202. &lt;div dir=&quot;ltr&quot; style=&quot;margin: 0px; padding: 0px; text-align: left;&quot; trbidi=&quot;on&quot;&gt;
  203. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXCrsCxI-gMGczd67jxmnMOFQyFzwGudmz3jwxoUlAFAyRp93lB-QxgHxfMMVZRDZNq3pQcu9SbfR2F9FwLkeu36lEvJMMYa3onPLICBWuhQ7Hk3tJd2Ma7i5QajjRjQUcEaU-WCcX1t1s/s1600-h/structureMarks.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5298202671317355170&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXCrsCxI-gMGczd67jxmnMOFQyFzwGudmz3jwxoUlAFAyRp93lB-QxgHxfMMVZRDZNq3pQcu9SbfR2F9FwLkeu36lEvJMMYa3onPLICBWuhQ7Hk3tJd2Ma7i5QajjRjQUcEaU-WCcX1t1s/s320/structureMarks.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 174px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 320px;&quot; /&gt;&lt;/a&gt;இந்தப் படத்தில் RegNoக்குறிய Columnல் Primary key க்கான படம் சிறிய சாவியாகக் குறிக்கப்பட்டுள்ளது. ஒரு Column ஐ Primary key ஆக எப்படி மாற்றுவது?&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;அந்தக் குறிப்பிட்ட Columnஐத் தேர்வு செய்யவும். பிறகு Right Click செய்து, வரக்கூடிய சிறிய menu வில் Set Primary key எனக் கொடுக்கவும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWBB1SXFm-OStSgLjEwILru8uL9RvyQFztFL3VriagwA6ihfZ9uo591m-QFRy3F2Wnm_ZpG8awixgEG-g9SvE7UKwa6WSvGZbgh0i3IUHOPDnOp1ZlIVHrZr6GSHupNxZZDnromQNN5CWW/s1600-h/setprimarykey.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5298203787738279666&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWBB1SXFm-OStSgLjEwILru8uL9RvyQFztFL3VriagwA6ihfZ9uo591m-QFRy3F2Wnm_ZpG8awixgEG-g9SvE7UKwa6WSvGZbgh0i3IUHOPDnOp1ZlIVHrZr6GSHupNxZZDnromQNN5CWW/s320/setprimarykey.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 90px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 320px;&quot; /&gt;&lt;/a&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;அவ்வளவுதான் Columnஐ, Primary key எனக் குறித்தாயிற்று. அதனால் ஒவ்வொரு நபருக்கும் நாம் கொடுக்கவேண்டிய பதிவு எண் (Registration Number)ணை மாற்றி, மாற்றிக் கொடுக்கவேண்டும். ஒரு நபருக்குக் கொடுத்த எண்ணையே மற்றோர் நபருக்குத் திரும்பவும் கொடுத்தால் பிழைச்செய்தி வரும். ஒவ்வொரு Rowன் RegNo ஐயும் வித்தியாசப்படுத்தவே Primary key ஐத் தேர்வுசெய்கிறோம்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYBPxghyphenhyphenCuf0s9loQPpy1UzKc3cQSpi97oZEo1U0bgrhufiszAhWQvtnk3qeUNjJcuIDX_T7oTd-yTJeOkVkr-g1mT0Bsshx00R_lQhQO-OUp-X5eYXzOY38fwf3iY2S8fbUBhWaBDGSJS/s1600-h/Close.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5298204780998698194&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYBPxghyphenhyphenCuf0s9loQPpy1UzKc3cQSpi97oZEo1U0bgrhufiszAhWQvtnk3qeUNjJcuIDX_T7oTd-yTJeOkVkr-g1mT0Bsshx00R_lQhQO-OUp-X5eYXzOY38fwf3iY2S8fbUBhWaBDGSJS/s320/Close.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 118px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 320px;&quot; /&gt;&lt;/a&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;Table Structureஐ Close செய்துவிட்டு, ஒரு Table Name கொடுத்துப் பதிவு செய்கிறோம். (MarkStatement என்று பெயர்கொடுத்திருக்கிறேன்). நினைவகத்தில் வன்வட்டு (hard disk)ல் பதிவாகிவிடும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இதில் Total, Average, Result ஆகிய Columnளுக்கு மட்டும் Allow Nulls என்பதற்கு நேராக Tick செய்துள்ளோம். ஆகவே Total, Average, Result ஆகியவற்றுக்கு மட்டும் தகவல்களை உள்ளீடு செய்யவேண்டிய அவசியம் இல்லை. பிறகு ஒரு UPDATE மூலம் அவற்றைக் கணக்கிட்டுக்கொள்ளலாம்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இப்போது இந்த அட்டவணை (Table)ல் ஒவ்வொரு Rowவாகத் தகவல்களைக் கொடுக்கப்போகிறோம்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இதற்காக MarkStatement ல் Right Click செய்து வரும் சிறு menuவில், Open Table தேர்வுசெய்யவும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3SO4hqpNilGUBucw0oeNed4ELKMr2k1xyClOFQiuxus23WdxQ1xYb0WpIXzB7fkPsiQFz3hJaMY4Akmq2qmori_EZc7nW4Vldp2Fw2OXzMP_UFpyx71pCgXW5qaMaxcWni0m4qNYLMDPM/s1600-h/oepntable.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5298206363009166866&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3SO4hqpNilGUBucw0oeNed4ELKMr2k1xyClOFQiuxus23WdxQ1xYb0WpIXzB7fkPsiQFz3hJaMY4Akmq2qmori_EZc7nW4Vldp2Fw2OXzMP_UFpyx71pCgXW5qaMaxcWni0m4qNYLMDPM/s320/oepntable.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 172px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 305px;&quot; /&gt;&lt;/a&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWMV6tCv67zu1w4LHYtvb9jbKQ7icv3r5oJPo0vhsBbfECjsWIu8GHHhYcnZhkuV6c7EyixxQnX9MYNS3OvHWPNezFw2-pGng9Dux7ce-awC5aR1C9iMOulAFM5OWC9UuhoZhK6g-Pbkpl/s1600-h/dataentrybefore.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5298206884831796546&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWMV6tCv67zu1w4LHYtvb9jbKQ7icv3r5oJPo0vhsBbfECjsWIu8GHHhYcnZhkuV6c7EyixxQnX9MYNS3OvHWPNezFw2-pGng9Dux7ce-awC5aR1C9iMOulAFM5OWC9UuhoZhK6g-Pbkpl/s320/dataentrybefore.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 16px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 320px;&quot; /&gt;&lt;/a&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இங்கே ஒவ்வொரு Rowவாக Table ல் தகவல்களை ஏற்றும்போது, Total,Average,Result ஆகியவற்றுக்கான மதிப்புகளை NULL ஆகவே விட்டுவிட்டு மற்ற Columnகளுக்கு உரிய மதிப்புகளை மட்டும் கொடுத்தால் போதும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhuknaU45hmq_3achSs3YrzL8iVvUBtKUl9TOXKsBjvQ-5tsz7cauUgL9lbuwx8yrAC2aQcO7Br3Gl5xnB5FEtiwNvvGV2PttRBocJLvgSmZb2jdwd5o2CSyJLcZNFElj3w92jsqmgE1RJe/s1600-h/dataentryafter.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5298208118565743538&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhuknaU45hmq_3achSs3YrzL8iVvUBtKUl9TOXKsBjvQ-5tsz7cauUgL9lbuwx8yrAC2aQcO7Br3Gl5xnB5FEtiwNvvGV2PttRBocJLvgSmZb2jdwd5o2CSyJLcZNFElj3w92jsqmgE1RJe/s320/dataentryafter.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 137px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 320px;&quot; /&gt;&lt;/a&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;நம் செயல்முறைகளுக்கு, 10 Rows மட்டும் போதும். அதற்காக இதைக் Close செய்யவும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfk4wb-hv-pMMGdXFqc4eM0XAn8gOLqYD80xEOe34ytX83DSfgSHaGr8vu0ShyphenhyphenT2H8witSoqJj_lw5Y6iczNhVtDNDkRU9MEaO3xhQFf5B4BZ4oFb3N2X46N19TUyK1A9rTmJllRVLJmvC/s1600-h/closeafterentry.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5298208778587620322&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfk4wb-hv-pMMGdXFqc4eM0XAn8gOLqYD80xEOe34ytX83DSfgSHaGr8vu0ShyphenhyphenT2H8witSoqJj_lw5Y6iczNhVtDNDkRU9MEaO3xhQFf5B4BZ4oFb3N2X46N19TUyK1A9rTmJllRVLJmvC/s320/closeafterentry.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 36px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 320px;&quot; /&gt;&lt;/a&gt;இப்போது, UPDATE மூலம் Total,Average,Result ஆகியவற்றை எப்படி நிரப்புவது என்பதைக் காண்போம். இதற்காக T-SQL Editorஐத் திறந்து கொள்ளவும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இதற்காக Databaseஐத் தேர்வு செய்தபிறகு, New Queryஎன்னும் ஒரு Toolbar ன் buttonஐத் தேர்வு செய்யவும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrJgjE1pLuVDyoGURvfhYvk4as2HCvjK65bmWl8JIlmMaZe2FxkEq-exck3c3CwWgdXxzs4xOdWzHTl-q0EL5O3vopqm7FYRoIJynZ2Ya2NVL_IiPDeyU7mh1pZ861pdq8mYR3Feres9VO/s1600-h/newquery.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5298209561653445474&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrJgjE1pLuVDyoGURvfhYvk4as2HCvjK65bmWl8JIlmMaZe2FxkEq-exck3c3CwWgdXxzs4xOdWzHTl-q0EL5O3vopqm7FYRoIJynZ2Ya2NVL_IiPDeyU7mh1pZ861pdq8mYR3Feres9VO/s320/newquery.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 85px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 320px;&quot; /&gt;&lt;/a&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;வலதுபுறம் உள்ள காலியிடமே T-SQL Editor ஆகும். அங்கே கீழ்க்கண்ட வரிகளை எழுதுங்கள்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;UPDATE dbo.MarkStatement&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;SET&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;Total = Tamil + English + Maths&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இதன் விளைவாக Total என்கிற Columnல் மூன்று பாடங்களில் அவரவர்கள் வாங்கிய மதிப்பெண்களைக் கூட்டி வரும் விடை நிரப்பப்பட்டுவிடும். இந்த UPDATE ல் எந்த WHEREம் இல்லாததால் அனைத்து Rowsம் மாற்றப்பட்டுவிடும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;எனக்குக் கிடைத்த விடை : (10 row(s) affected)&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இப்போது&amp;nbsp;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;SELECT * FROM MarkStatement&lt;/span&gt;&amp;nbsp;- இதை ஓட்டிப்பார்த்து Total Column மதிப்பை உடனே அறிந்துகொள்ளலாம்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;Average ( சராசரி ) காண்பதற்காக :&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;UPDATE dbo.MarkStatement&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;SET&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;Average = Total / 3&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;மூன்றையும் கூட்டி மூன்றால் வகுத்தால் வரும் விடை இங்கே சராசரி ஆகும் (Average).&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;கீழ்க்கண்ட வரியை இயக்கினால் எந்தெந்த மாணவர்கள் தேர்ச்சியுற்றிருக்கிறார்களோ அவர்களுக்கு மட்டும் PASS என Result Columnன் மதிப்பை மாற்றிவிடலாம்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;UPDATE dbo.MarkStatement&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;SET&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;[Result] = &#39;PASS&#39;&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;WHERE&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;Tamil &amp;gt;= 35 AND English &amp;gt;= 35 AND Maths &amp;gt;= 35&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;Tamil, English, Maths ஆகிய 3 மாறுபட்ட பாடங்களிலும், அனைத்துப் பாடங்களிலும் குறைந்தபட்சம் 35 மதிப்பெண்கள் எடுத்தவர்களுக்கு PASS போட்டு விடப்படும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;AND எனப்படும் தர்க்கரீதியிலான Logical Operator ஆனது, அனைத்துக் கட்டுப்பாடுகளுக்கும் சம்மதிக்கக் கூடிய Rows ஐ மட்டும் பிரித்தெடுத்து அவைகளை மட்டும் UPDATE செய்ய அனுமதிக்கும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;விடை : (8 row(s) affected)&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;UPDATE dbo.MarkStatement&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;SET&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;[Result] = &#39;FAIL&#39;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;WHERE&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;Tamil &amp;lt; 35 OR English &amp;lt; 35 OR Maths &amp;lt; 35&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;/span&gt;மேற்கண்ட வரியை இயக்கினால், ஏதேனும் ஒரு பாடத்தில் மட்டுமாவது 35 மதிப்பெண்களைவிடக் குறைவாகப் பெற்றவர்களுக்கு மாத்திரம் FAIL போடப்பட்டுவிடும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;OR எனப்படும் தர்க்கரீதியிலான Logical Operator ஆனது ஏதேனும் ஒரு கட்டுப்பாட்டுக்காவது சம்மதிக்கும் Rows ஐ UPDATE செய்துவிடும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;கிடைத்த விடை : (2 row(s) affected)&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;/span&gt;இப்போது&amp;nbsp;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;SELECT * FROM MarkStatement&lt;/span&gt;&amp;nbsp;- இதை ஓட்டிப்பார்த்து Total, Average, Result Columnகளில் Update செய்யப்பட்ட மதிப்பை அறிந்துகொள்ளலாம்.&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHRb1p45vx4V0zl570RVqI_TvHgL1ZAcQJVkKCsRKxrRHb4ZfDGmhvo5y4tQjjYYmQCpT2a7qCrt2WDcYl3m-bnAfyKQktsTb3F0oXSRZdlOtbczj2zMEmCppOr4fooK3QUinYzizwulWW/s1600-h/markstatement.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5298214223896693602&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHRb1p45vx4V0zl570RVqI_TvHgL1ZAcQJVkKCsRKxrRHb4ZfDGmhvo5y4tQjjYYmQCpT2a7qCrt2WDcYl3m-bnAfyKQktsTb3F0oXSRZdlOtbczj2zMEmCppOr4fooK3QUinYzizwulWW/s320/markstatement.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 174px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 320px;&quot; /&gt;&lt;/a&gt;&lt;/span&gt;ஹரி, மற்றும் பானு இருவர் மட்டும் தோல்வியடைந்துள்ளனர். மீதி அனைவரும் தேர்ச்சியடைந்துள்ளனர்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;அதிகபட்ச மதிப்பெண்ணைக் காண :&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;SELECT MAX(total) FROM Markstatement&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இதன் விடை : 267&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;MAX ( ) என்பது Maximum ஒரு உள்ளமைந்த built-in Function ஆகும். இது குறிப்பிட்ட Columnல் இருக்கும் அனைத்து மதிப்புகளிலும் மிக உயர்ந்தது எது என்பதைக் கண்டறிய உதவும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;ஏற்கனவே முந்தைய பாடத்தில் UPPER ( ) , GETDATE ( ) போன்ற Functions ஐப் பார்த்திருக்கிறோம். அதைப் போன்றே இது.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;குறைந்தபட்ச மதிப்பெண் யாது?&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;margin: 0px; padding: 0px;&quot;&gt;SELECT MIN(Total) FROM Markstatement&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;/span&gt;இதன் விடை : 118&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;/span&gt;MIN( ) என்பது Minimum ஒரு உள்ளமைந்த built-in Function ஆகும். இது குறிப்பிட்ட Columnல் இருக்கும் அனைத்து மதிப்புகளிலும் மிகக் குறைவானது எது என்பதைக் கண்டறிய உதவும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;முதல் மதிப்பெண்ணைப் பெற்றவர்களது தகவல்களைக் கண்டறிய :&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;SELECT * FROM MarkStatement&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;WHERE TOTAL = (SELECT MAX (Total) FROM Markstatement)&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;அல்லது,&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;DECLARE @M INT&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;SET @M= ( SELECT MAX(Total) FROM MarkStatement )&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;SELECT * FROM MarkStatement WHERE Total = @M&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;எனக் கொடுக்கலாம். இதன் விடை கீழே :&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi66f4ewBEvrLEMNGI5p5ihCT3ffvmR8EAzfLQFWCdfqqLeAhjkllsXfsVF7W51lngNoDm3Wd_o4Xa5Ne0hqaKhivVM26xkNxo-hZJVJxblw86KLq7d2zrRIg5P-9cKLc12RhyO9RjqTpq0/s1600-h/rank1.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5298216862211601714&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi66f4ewBEvrLEMNGI5p5ihCT3ffvmR8EAzfLQFWCdfqqLeAhjkllsXfsVF7W51lngNoDm3Wd_o4Xa5Ne0hqaKhivVM26xkNxo-hZJVJxblw86KLq7d2zrRIg5P-9cKLc12RhyO9RjqTpq0/s320/rank1.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 73px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 320px;&quot; /&gt;&lt;/a&gt;&lt;/span&gt;தேர்வில் தோல்வியடைந்தவர்களின் records ஐ அழித்துவிடுவோம். அதற்காக,&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;DELETE FROM MarkStatement WHERE [Result] = &#39;FAIL&#39;&lt;/span&gt;&lt;/div&gt;
  204. &lt;/div&gt;
  205. &lt;/div&gt;
  206. </content><link rel='replies' type='application/atom+xml' href='http://tamilprogramminng.blogspot.com/feeds/433959291756216337/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tamilprogramminng.blogspot.com/2013/08/sql-11.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3691376985285892436/posts/default/433959291756216337'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3691376985285892436/posts/default/433959291756216337'/><link rel='alternate' type='text/html' href='http://tamilprogramminng.blogspot.com/2013/08/sql-11.html' title='எளிய தமிழில் SQL - பாகம் 11'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXCrsCxI-gMGczd67jxmnMOFQyFzwGudmz3jwxoUlAFAyRp93lB-QxgHxfMMVZRDZNq3pQcu9SbfR2F9FwLkeu36lEvJMMYa3onPLICBWuhQ7Hk3tJd2Ma7i5QajjRjQUcEaU-WCcX1t1s/s72-c/structureMarks.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3691376985285892436.post-4156095742625803396</id><published>2013-08-08T04:53:00.003-07:00</published><updated>2013-08-08T04:53:48.004-07:00</updated><title type='text'>எளிய தமிழில் SQL - பாகம் 10</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
  207. &lt;h3 class=&quot;post-title entry-title&quot; style=&quot;background-color: white; font-family: Times, serif; font-size: 31px; font-weight: normal; line-height: 1.4em; margin: 0px; padding: 0px;&quot;&gt;
  208. &lt;span style=&quot;font-family: Georgia, Times, serif; font-size: 13px; line-height: 20.984375px;&quot;&gt;SQL கற்பதற்கான ஒரு இலவச மென்பொருளான 2005 ஐ முந்தைய பாகங்களில் கண்டோம்.&lt;/span&gt;&lt;/h3&gt;
  209. &lt;div class=&quot;post-body entry-content&quot; style=&quot;background-color: white; font-family: Georgia, Times, serif; font-size: 13px; line-height: 20.984375px; margin: 0px; padding: 0px; text-align: justify;&quot;&gt;
  210. &lt;div dir=&quot;ltr&quot; style=&quot;margin: 0px; padding: 0px; text-align: left;&quot; trbidi=&quot;on&quot;&gt;
  211. அதன் நவீன வடிவமாகிய&amp;nbsp;&lt;a href=&quot;http://www.microsoft.com/express/sql/download/&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot; target=&quot;_blank&quot;&gt;Microsoft® SQL Server® 2008 Express with Tools&lt;/a&gt;&amp;nbsp;ஐ இறக்கி நிறுவிப் பயன்பெருங்கள்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;a href=&quot;http://go.microsoft.com/?linkid=9394725&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot; target=&quot;_blank&quot;&gt;SQL Server 2008 Express with Tools&amp;nbsp;&lt;/a&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;SQL Server database engine - create, store, update and retrieve your data&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;SQL Server Management Studio Basic - visual database management tool for creating, editing and managing databases&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இந்த அடிப்படைப் பயன்பாடு நமக்கு ஒத்துவரும். 2005 ஐ நிறுவியிருந்தவர்கள் அதை uninstall செய்தபிறகு இதை நிறுவவும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;நேற்றையப் பதிவில் CREATE,INSERT,SELECT ஆகியவை பற்றிப் பார்த்தோம்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இன்றைக்கு UPDATE மற்றும் DELETE ஆகியவற்றைப் பற்றிப் பார்ப்போம்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;ஏற்கனவே பதியப்பட்ட தகவல்களில் மாற்றங்கள் செய்வதற்கு UPDATE உதவும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;பழைய தகவல்களின் Row / Rows ஐ அழித்துவிடுவதற்கு DELETE உதவும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;ஏற்கனவே நாம் உருவாக்கிய MyListஐ ஒரு Copy (படி) எடுத்து வைப்பதற்காக கீழ்க்கண்ட வரியை இயக்கவும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;Table ஐ Copy செய்வதற்குரிய Syntax :&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;SELECT * INTO newTableName FROM oldTableName&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;உதாரணம்:&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;SELECT * INTO BakupMyList FROM MyList&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இதன் மூலம் MyList எனப்படும் நம்முடைய பழைய Tableன் Copy ஐ, புதிய BackupMyListல் எழுதி வைத்துவிடலாம்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இதை இயக்கியதும் எனக்குக் கிடைத்த விடை : (5 row(s) affected)&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இப்போது UPDATE பற்றிப் பார்ப்போம்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;UPDATE ன் Syntax:&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;UPDATE tableName&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;SET&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;[fieldName] = &#39;newValue&#39;&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;WHERE&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;[fieldName] =&#39;oldValue&#39;&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;உதாரணம்:&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;UPDATE MyList&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;SET&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;[Name] = &#39;Arun&#39;&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;WHERE&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;[Name] =&#39;valpaiyan&#39;&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;நம்முடைய MyList என்னும் Tableல் 2வது rowல் உள்ள தகவல் 2,valpaiyan,Erode - என இருந்தது. அவருடைய உண்மையான பெயர் Arun. செல்லமாக அவர் வைத்துக்கொண்ட பெயர் valpaiyan. அவருடைய செல்லப்பெயரை, உண்மைப் பெயரைக் கொண்டு மாற்றுவதற்கு - மேற்கொண்ட UPDATE பயன்படும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இப்போது&amp;nbsp;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;SELECT * FROM MyList WHERE [Person#] = 2&lt;/span&gt;&amp;nbsp;எனக் கொடுத்து F5 அழுத்தினால், கிடைக்கும் விடை :&amp;nbsp;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;2 Arun Erode&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;நாம் ஒரு rowல் இருக்கும் குறிப்பிட்ட Column ல் ஏற்றப்பட்ட மதிப்பை வேறு ஒரு மதிப்பைக் கொண்டு மாற்றுவதற்கு இப்போது UPDATE ஐப் பயன்படுத்தினோம்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;இதில் WHERE எனப்படும் கட்டுப்பாட்டை விதிக்காவிடில் என்ன ஆகும்?&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;உதாரணமாக :&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;UPDATE MyList&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;SET&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;[Name] = &#39;Arun&#39;&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;என்று மட்டும் கொடுத்திருந்தால் என்ன ஆகியிருக்கும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDDKaUKrUFgY0GLmT7CHE0mwEH2If3W4YghIFj9_u9k2NF0rfNMQCKH8cnxOiY6-MTsShnS-d4U1z_6momSBKFfwE_obAqHZUyR9Un_TjKTqg3jp36npPXKdQOV4XAQF3rRRzIcBGIP0rM/s1600-h/withoutwhere.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5297707058706931106&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDDKaUKrUFgY0GLmT7CHE0mwEH2If3W4YghIFj9_u9k2NF0rfNMQCKH8cnxOiY6-MTsShnS-d4U1z_6momSBKFfwE_obAqHZUyR9Un_TjKTqg3jp36npPXKdQOV4XAQF3rRRzIcBGIP0rM/s320/withoutwhere.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 112px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 178px;&quot; /&gt;&lt;/a&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இப்படி ஆகியிருக்கும். அனைவருடைய பெயரையுமே Arun என்று மாற்றியிருக்கும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;எத்தனை முறை SELECT கொடுத்தாலும், எந்தத் தகவலுமே மாறாமல் அப்படியே இருக்கும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;ஆனால் UPDATE, DELETE கொடுக்கும்போது கவனமாக இருக்கவும். எதாவது தவறிழைத்துவிட்டால் - அனைத்துத் தகவலும் நொடியினில் மாறிவிடும் ஆபத்து உள்ளது.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;அதற்காகவே&amp;nbsp;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;SELECT * INTO&lt;/span&gt;&amp;nbsp;கொடுத்து ஒரு backup எடுத்து வைத்துக்கொண்டேன்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இந்த அட்டவணையில் (Table) ஏற்கனவே ஏற்றப்பட்டுள்ள 5 Rowsல் இருக்கும் [Name] Columnன் மதிப்புகள் அனைத்தையுமே பெரிய எழுத்துகளில் (CAPITAL LETTERS) மாற்றுவதற்கு என்ன செய்யவேண்டும்?&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;UPDATE MyList&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;SET&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;[Name] = UPPER([Name])&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இங்கே UPPER( ) என்பது ஒரு Function ஆகும். இதை உள்ளமைந்த built-in function என்போம். இது பெரிய எழுத்துகளாக மாற்றுவதற்குப் பயன்படுகிறது.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEik6Z3X7-9V8d4B3bHXAZb9veCmhq8uJYRaohm1E4ggVXHYJ2SZDC42jMfLgXZzmUQp_Z4n7eb_Nq761fzfa04UV9duIdcVGgxVA-ZPELUcK2gXo2YImNMoT6HyY1eZuWthMf27TTqTiQGF/s1600-h/allcaps.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5297708938415693442&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEik6Z3X7-9V8d4B3bHXAZb9veCmhq8uJYRaohm1E4ggVXHYJ2SZDC42jMfLgXZzmUQp_Z4n7eb_Nq761fzfa04UV9duIdcVGgxVA-ZPELUcK2gXo2YImNMoT6HyY1eZuWthMf27TTqTiQGF/s320/allcaps.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 139px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 206px;&quot; /&gt;&lt;/a&gt;இந்த UPPER( ) மாற்றப்பட்டவுடன் கிடைத்த விடை மேலே:&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இப்போது அழிக்கும் வேலைக்கு என்ன Statement என்பதைக் காண்போம்&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;Syntax கீழே:&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;DELETE FROM tableName WHERE Condition&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;DELETE FROM&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;MyList&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;WHERE&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;[Person#] = 4&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இதன் அர்த்தம் என்ன. 4வது rowவை அழித்துவிடு.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-style: italic; font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;DELETE FROM MyList&lt;/span&gt;&lt;span style=&quot;font-style: italic; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;என்று WHERE ஐ நீக்கிவிட்டுக் கொடுத்தால் என்ன ஆகும்?&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;ஒட்டுமொத்தமாக அனைத்து records (rows) ம் அழிந்து போகும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;ஆனால் Tableன் Structure அழியாது.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இந்த&amp;nbsp;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;DELETE FROM MyList&lt;/span&gt;&amp;nbsp;இதற்குச் சமமாக வேறு ஒரு Statement ம் இருக்கிறது.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;அதன் Syntax மற்றும் உதாரணம் கீழே:&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;TRUNCATE TABLE tableName&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;TRUNCATE TABLE MyList&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;குறிப்பு :&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;ஒரு Table ஆனது, அதனுடன் தொடர்புடைய இணைக்கப்பட்ட மற்றொரு Table உடன் இணைப்பில் இருந்தால் (&lt;span style=&quot;font-style: italic; margin: 0px; padding: 0px;&quot;&gt;Foreign Key Relationship&lt;/span&gt;) அதை Truncate செய்ய இயலாது. Truncate ன் மூலம் ஒரு Tableல் உள்ள அனைத்து Rows ஐயும் அழித்துவிட இயலும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;ஒரு Tableஐ வேறொரு Tableஉடன் இணைப்பதற்கு (join) Foreign key பயன்படுகிறது.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-style: italic; margin: 0px; padding: 0px;&quot;&gt;Structure ஐயும் சேர்த்து அழிப்பதற்கு என்ன செய்யவேண்டும்?&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;Syntax :&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;DROP TABLE tableName&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;உதாரணம்:&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;DROP TABLE MyList&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இப்போது ஏற்கனவே Copy செய்து வைத்திருக்கிறோமே BakupMyList என்கிற Table அதை MyList என பெயர் மாற்றுவோம்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இப்படி ஒரு Tableன் பெயரை மாற்றுவதற்கு கீழே உள்ள வரியை இயக்கலாம்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;SP_RENAME &#39;BakupMyList&#39;, &#39;MyList&#39;&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;SP_RENAME என்பது ஏற்கனவே எழுதப்பட்ட ஒரு நிரல். அதனை Stored Procedure என்று அழைப்பார்கள். அதுபற்றிப் பிறகு பார்ப்போம்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இதன் Syntax:&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;SP_RENAME &#39;oldTableName&#39;, &#39;newTableName&#39;&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இப்படி ஒரு Tableன் பெயரை மாற்றும்போது, கிடைக்கும் ஒரு எச்சரிக்கைச் செய்தி:&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;color: #cc0000; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;Caution: Changing any part of an object name could break scripts and stored procedures.&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-style: italic; margin: 0px; padding: 0px;&quot;&gt;Tableன் ஒரு குறிப்பிட்ட columnன் பெயரை மாற்ற என்ன செய்ய வேண்டும்?&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;SP_RENAME &#39;dbo.MyList.City&#39;, &#39;Place&#39;, &#39;COLUMN&#39;&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இதன் Syntax :&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;SP_RENAME&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&#39;dbo.tableName.oldColumnName&#39;,&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&#39;newColumnName&#39;, &#39;COLUMN&#39;&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இங்கே dbo என்பது object owner.&lt;/div&gt;
  212. &lt;/div&gt;
  213. &lt;/div&gt;
  214. </content><link rel='replies' type='application/atom+xml' href='http://tamilprogramminng.blogspot.com/feeds/4156095742625803396/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tamilprogramminng.blogspot.com/2013/08/sql-10.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3691376985285892436/posts/default/4156095742625803396'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3691376985285892436/posts/default/4156095742625803396'/><link rel='alternate' type='text/html' href='http://tamilprogramminng.blogspot.com/2013/08/sql-10.html' title='எளிய தமிழில் SQL - பாகம் 10'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDDKaUKrUFgY0GLmT7CHE0mwEH2If3W4YghIFj9_u9k2NF0rfNMQCKH8cnxOiY6-MTsShnS-d4U1z_6momSBKFfwE_obAqHZUyR9Un_TjKTqg3jp36npPXKdQOV4XAQF3rRRzIcBGIP0rM/s72-c/withoutwhere.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3691376985285892436.post-5442279859948749261</id><published>2013-08-08T04:53:00.000-07:00</published><updated>2013-08-08T04:53:12.945-07:00</updated><title type='text'>எளிய தமிழில் SQL - பாகம் 9</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
  215. &lt;h3 class=&quot;post-title entry-title&quot; style=&quot;background-color: white; font-family: Times, serif; font-size: 31px; font-weight: normal; line-height: 1.4em; margin: 0px; padding: 0px;&quot;&gt;
  216. &lt;span style=&quot;font-family: Georgia, Times, serif; font-size: 13px; line-height: 20.984375px;&quot;&gt;ஒரு சிறிய Table ஒன்றை உருவாக்கிக்கொள்வோம். அதைக் கொண்டு SELECT ன் தன்மைகளை ஆராயலாம்.&lt;/span&gt;&lt;/h3&gt;
  217. &lt;div class=&quot;post-body entry-content&quot; style=&quot;background-color: white; font-family: Georgia, Times, serif; font-size: 13px; line-height: 20.984375px; margin: 0px; padding: 0px; text-align: justify;&quot;&gt;
  218. &lt;div dir=&quot;ltr&quot; style=&quot;margin: 0px; padding: 0px; text-align: left;&quot; trbidi=&quot;on&quot;&gt;
  219. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;Table ஒன்றை உருவாக்குவதற்காக, GUI (Graphical User Interface) வழியாக என்ன செய்வதென்று ஏற்கனவே&amp;nbsp;பாகம்-5ல் பார்த்திருக்கிறோம்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;அதையே CUI எனப்படும் Character User Interface வாயிலாக T-SQL Editor ல் தட்டித்தட்டியே ஒரு Tableன் Structureஐ எப்படி உருவாக்குவது என்பதை இங்கே காணலாம்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;T-SQL Editorல் எவ்வாறு நிரல் எழுதுவது? T-SQL Editorக்கு எந்த செயல்வழி மூலம் செல்வது? ஆகியவற்றைத்தெரிந்து கொள்ள -&amp;nbsp;இங்கே&amp;nbsp;சொடுக்கவும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;ஒரு வழியாக T-SQL Editorக்கு வந்துவிட்டோம்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;Table ஒன்றை புதிதாக உருவாக்க உதவும் ஒரு எளிய pattern கீழே :&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;color: #009900; font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;CREATE TABLE tableName&lt;/span&gt;&lt;span style=&quot;color: #009900; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #009900; font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;(&lt;/span&gt;&lt;span style=&quot;color: #009900; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #009900; font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;ColumnName1 datatype,&lt;/span&gt;&lt;span style=&quot;color: #009900; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #009900; font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;ColumnName2 datatype,&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;color: #009900; font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;ColumnName3 datatype,&lt;/span&gt;&lt;span style=&quot;color: #009900; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #009900; font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;....&lt;/span&gt;&lt;span style=&quot;color: #009900; margin: 0px; padding: 0px;&quot;&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;color: #009900; font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இந்த pattern ஐ Syntax என்பார்கள். கணக்குப் பாடத்தில் ஒரு கணக்கைச் செய்வதற்கு முன் மாதிரி கணக்கைக் கொடுத்து - அதைப்போல மற்றொன்றைச் செய்யச் சொல்வார்கள். அந்த மாதிரி கணக்கு போலத்தான் இந்த Syntax.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இந்த Syntax ல் tableName என்கிற இடத்தில் ஒரு அட்டவணையின் பெயர் (MyList), ColumnName1 என்கிற இடத்தில் Person#, LastName, FirstName, City போன்றவையும் ஒவ்வொரு DataTypeக்கு நேராக அதன் வகையையும் குறிப்பிட்டுவிட்டால் கீழ்க்கண்டமாதிரி Tableன் வடிவம் இருக்கும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;CREATE TABLE MyList&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;(&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;Person# int,&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;[Name] varchar(50),&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;City varchar(50)&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;)&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;Name என்பது SQL ல் உள்ளமைந்த ஒரு தனிப்பட்ட keyword. ஆகவே அதைப் பிரித்துக் காண்பிப்பதற்காக [Name] என ஒரு அடைப்புக்குள் (Square Bracket) குறிப்பிடுகிறோம். இந்த Pattern - Syntax ஐ நிரப்பிய பிறகு F5 keyஐ விசைப்பலகையில் அழுத்தி Table ஐ உருவாக்கலாம். ஏதேனும் பிழைச்செய்தி வந்தால் அதைச் சரிசெய்தபிறகு Table உருவாகிவிடும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;Table உருவாகிவிட்டதா என்பதை எப்படி அறிவது?&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;ஒரு சிறிய SELECT வடிவம் ஒன்று.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;color: #009900; font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;SELECT * FROM tableName&amp;nbsp;&lt;/span&gt;---&amp;gt; ஒரு Tableல் இருக்கும் அனைத்து rowsஐயும் திரையில் காண்பிப்பதற்காக.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;SELECT * FROM MyList&lt;/span&gt;&amp;nbsp;--&amp;gt; MyList என்பது நாம் சற்று முன்னர் உருவாக்கிய Tableன் பெயரே. இதை இயக்குவதற்கு F5 அழுத்தினால் கிடைக்கும் விடை கீழே :&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_5wU4pIpJfYpoP4jif9Grza5oJagCTPEcQVpp7IaAH2od1M1XGHRB7jHe69ZYg-Pe5P5L2X6xuZDKQ8RpeyVH4Pri_CEH6DvVqmN9VlGhLMoFsKp8IR7Bar9HqaAgdnd_Knu4YCfWw5x6/s1600-h/empty.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5297398708023815074&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_5wU4pIpJfYpoP4jif9Grza5oJagCTPEcQVpp7IaAH2od1M1XGHRB7jHe69ZYg-Pe5P5L2X6xuZDKQ8RpeyVH4Pri_CEH6DvVqmN9VlGhLMoFsKp8IR7Bar9HqaAgdnd_Knu4YCfWw5x6/s320/empty.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 67px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 169px;&quot; /&gt;&lt;/a&gt;இங்கே * என்பது அனைத்து rows ஐயும் குறிக்கிறது.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;நாம் இப்போது உருவாக்கிய Persons என்கிற Tableல் எந்தவிதமான தகவலும் ஏற்றப்படவில்லை. வெறும் Structure மட்டுமே உருவாக்கப்பட்டுள்ளது.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இந்த MyList என்று சற்றுமுன்னர் உருவாக்கிய Tableல் ஒவ்வொரு rowவாக புதுப்புது தகவல்களை ஏற்றுவதற்கு என்ன செய்யவேண்டும்?&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;புதிய தகவல்களை ஏற்றுவதற்கு உரிய Syntax (Pattern)&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;color: green; margin: 0px; padding: 0px;&quot;&gt;&lt;b style=&quot;margin: 0px; padding: 0px;&quot;&gt;INSERT INTO table_name&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;(&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;column1,&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;column2, ...&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;)&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;VALUES&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;(&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&#39;value1&#39;,&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&#39;value2&#39;, ...&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;)&lt;/b&gt;&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;நாம் நமது MyList அட்டவணைக்குத் தகுந்தாற்போல் மாற்றினால்&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;INSERT INTO MyList (&lt;/span&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;Person#,&lt;/span&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;[Name] ,&lt;/span&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;City)&lt;/span&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;VALUES (1, &#39;Jimsha&#39;, &#39;Chennai&#39;)&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;INSERT INTO MyList (&lt;/span&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;Person#,&lt;/span&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;[Name] ,&lt;/span&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;City)&lt;/span&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;VALUES (2, &#39;Valpaiyan&#39;, &#39;Erode&#39;)&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;INSERT INTO MyList (&lt;/span&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;Person#,&lt;/span&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;[Name] ,&lt;/span&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;City)&lt;/span&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;VALUES (3, &#39;Karthik&#39;, &#39;Erode&#39;)&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;INSERT INTO MyList (&lt;/span&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;Person#,&lt;/span&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;[Name] ,&lt;/span&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;City)&lt;/span&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;VALUES (4, &#39;Vizhiyan&#39;, &#39;Chennai&#39;)&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;INSERT INTO MyList (&lt;/span&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;Person#,&lt;/span&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;[Name] ,&lt;/span&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;City)&lt;/span&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;VALUES (5, &#39;PKP&#39;, &#39;USA&#39;)&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;என 5 rowக்களுக்கான தகவல்களை 5 வரிகளில் எழுதவேண்டும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இப்போது நாம் கொடுத்த தகவல்களை திரையில் காண்பதற்கு :&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;SELECT * FROM MyList&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;எனத்தட்டெழுதி F5 அழுத்தவும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;விடை கீழே :&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7R85LHJC-Qn7AJBMAgkF0hrOipOiz8RjCxgCl_CApShQak89IJmaJMJsZDh6xIG5qZjNLG1QKSU-OpQi2o8q34k9DNIcBZLO5-GZgV9NPysRwGOUBZWOOmASh_M6qdF3zSVeQkcT9dIO2/s1600-h/rowentry.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5296016453581327746&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7R85LHJC-Qn7AJBMAgkF0hrOipOiz8RjCxgCl_CApShQak89IJmaJMJsZDh6xIG5qZjNLG1QKSU-OpQi2o8q34k9DNIcBZLO5-GZgV9NPysRwGOUBZWOOmASh_M6qdF3zSVeQkcT9dIO2/s320/rowentry.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 138px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 320px;&quot; /&gt;&lt;/a&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;CREATE புதிய Tableன் Structureஐ உருவாக்க&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;SELECT ஏற்றப்பட்ட தகவல்களைப் பார்வையிட&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;INSERT புதிய தகவல்களை ஒன்றொன்றாகப் பதிந்திட&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;SELECT ல் Wild Card Character என்று குறிப்பிட்டிருந்தேன். அது என்ன Wild Card Character?&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;உதாரணமாக&amp;nbsp;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;SELECT * FROM MyList&lt;/span&gt;&amp;nbsp;எனக் கொடுத்தால் ஏற்றப்பட்ட 5 rowsஉம் உடனே கண்முன் வந்து நிற்கும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இதில் குறிப்பிட்ட rowsஐ மட்டும் பார்ப்பதற்கு என்ன செய்வது? வடிகட்டுதல் நுட்பத்திற்காக SELECT உடன் WHERE எனப்படும் கட்டுப்பாட்டை உடன் இணைக்கிறோம்..&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இப்போது SELECT ன் Syntax இவ்வாறு இருக்கும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;color: #009900; font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;SELECT * FROM tableName WHERE Condition&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;Condition என்கிற இடத்தில்&amp;nbsp;Relational மற்றும் Logical Operators&amp;nbsp;ஐப் பயன்படுத்தி வடிகட்டுதல் வேட்டையைத் தொடரலாம்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;சில உதாரணங்கள்:&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;SELECT * from MyList WHERE Person# = 5&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;5வது நபரின் தகவல்களை மட்டும் திரையில் காண்பதற்கு&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;விடை :&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxLrMHnPsIDbUKzEju3VQcn7uJQdXnSADxeXbj0Jnqm8U8NC4cSCezKz5EGYyRPqQ_JtKSuBsCiPXJ-sO6kbPGoc6LU9V1uyg2egyKFG9BYWC-1XkjBOeCpmHXOn89qD-muNBsXZC77OGN/s1600-h/5th.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5297405443698506978&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxLrMHnPsIDbUKzEju3VQcn7uJQdXnSADxeXbj0Jnqm8U8NC4cSCezKz5EGYyRPqQ_JtKSuBsCiPXJ-sO6kbPGoc6LU9V1uyg2egyKFG9BYWC-1XkjBOeCpmHXOn89qD-muNBsXZC77OGN/s320/5th.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 65px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 166px;&quot; /&gt;&lt;/a&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;SELECT * FROM MyList WHERE Person# &amp;gt;=2 AND Person# &amp;lt;= 4.&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;2 முதல் 4 வரை எண்களைக் கொண்ட நபர்களின் தகவல்களைக் காண&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8o9cebm_uhEb1DicuoonkpeSnRUNtYDf83eygqiC6hQ_sfytEVKJVbfE4C53e9Pr2CpG5MJG9RqowwottKh_1hWkzrqYFFmtD4qYeG1MOQjzY8s5pK89TlOcRZFoycBBF7AP5dKlnPkLw/s1600-h/2to4.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5297405971645456930&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8o9cebm_uhEb1DicuoonkpeSnRUNtYDf83eygqiC6hQ_sfytEVKJVbfE4C53e9Pr2CpG5MJG9RqowwottKh_1hWkzrqYFFmtD4qYeG1MOQjzY8s5pK89TlOcRZFoycBBF7AP5dKlnPkLw/s320/2to4.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 99px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 202px;&quot; /&gt;&lt;/a&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;SELECT * FROM MyList WHERE City = &#39;Erode&#39;&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;ஈரோடு நகரில் வசிக்கும் நபர்களை மட்டும் பார்க்க&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCqyoFcMt3eEqU58lWkgKbSaT_oOkEGzn2Hb-bCKU8zTgr9uWdAVx8mUDdEqjxyAMYN5axogdDqM5mC18Cm8L6RiOBmsV5Kcyf7SR6HL24gZZXg99MZg5ZyUgMFDK_8fmayO-7kSeFiSxc/s1600-h/erode.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5297406768506348322&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCqyoFcMt3eEqU58lWkgKbSaT_oOkEGzn2Hb-bCKU8zTgr9uWdAVx8mUDdEqjxyAMYN5axogdDqM5mC18Cm8L6RiOBmsV5Kcyf7SR6HL24gZZXg99MZg5ZyUgMFDK_8fmayO-7kSeFiSxc/s320/erode.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 81px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 193px;&quot; /&gt;&lt;/a&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;SELECT * from MyList WHERE City &amp;lt;&amp;gt; &#39;Erode&#39;&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;ஈரோடு நகரை விடுத்து பிற நகரங்களில் வசிப்போர் யார் யார்?&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhusmvqaqRfOu5YBcKnudwzLO-fPo4p75_7YBNa6GoIKqYW5ZOYFzcKpsAhZueibKu0HOS347mtnaZTatuq2e_IWLzGU3ZLKXh93l5hOtOsWart27pRqL97c6R9s81feReL94_1dBG0Bymz/s1600-h/excepterode.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5297407300633314418&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhusmvqaqRfOu5YBcKnudwzLO-fPo4p75_7YBNa6GoIKqYW5ZOYFzcKpsAhZueibKu0HOS347mtnaZTatuq2e_IWLzGU3ZLKXh93l5hOtOsWart27pRqL97c6R9s81feReL94_1dBG0Bymz/s320/excepterode.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 76px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 194px;&quot; /&gt;&lt;/a&gt;இது வரை நாம் Wild Card ஐப் பயன்படுத்தவில்லை. இப்போது பயன்படுத்திப் பார்ப்போம். Wild Card என்றால் நிரப்பிகள் எனப்படும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;Wild Card பயன்படுத்தும் Syntax வடிவம்&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;color: #009900; font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;SELECT * FROM&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;tableName&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;WHERE&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;filedName&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;LIKE&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&#39;wild pattern&#39;&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;LIKE &#39;C%&#39;&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;எனக்கொடுத்தால் C என்கிற எழுத்தில் ஆரம்பிக்கக் கூடிய எல்லாமே&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;நகரத்தின் ஆரம்ப எழுத்து C.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;SELECT * FROM MyList WHERE City LIKE &#39;C%&#39;&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhj-SE2etcNtHJAcDcAOPCju2LkioMqIxjHLol_pbQK8ex9wsDoCw2HNyf9Tag4yfccnVaXk6fAe6f_KGgBkxqhMol47kCdcGGWY80gfbBBH0IW3Dw9EiFQx-EJORzMNebM4N6uIwuFark2/s1600-h/chennaionly.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5297409449687281954&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhj-SE2etcNtHJAcDcAOPCju2LkioMqIxjHLol_pbQK8ex9wsDoCw2HNyf9Tag4yfccnVaXk6fAe6f_KGgBkxqhMol47kCdcGGWY80gfbBBH0IW3Dw9EiFQx-EJORzMNebM4N6uIwuFark2/s320/chennaionly.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 79px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 192px;&quot; /&gt;&lt;/a&gt;LIKE &#39;%i%&#39;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;எனக் கொடுத்தால் இரண்டாவது எழுத்து i&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;% என்பது எல்லாமே , _ என்பது ஒரு எழுத்தை மட்டும் குறிக்கிறது.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;SELECT * FROM MyList WHERE [Name] LIKE &#39;%i%&#39;&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;பெயரின் ஏதோ ஒரு எழுத்து i ஆக இருப்பவர்கள் யார் யார்?&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSG0QtYqInK4OyHRr-oKzn6nW8TtgbRvsFJ9OBS_jwxKeINLFl64_rj-kY0n9CLABcUdTV0hnuSUPDhhzRcopm7jyaHEZLbbf3ouAb6ckj8isLtsxPgN_1Z63hlTptKac4v0rbR9iCcuMX/s1600-h/namewithI.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5297410410160516226&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSG0QtYqInK4OyHRr-oKzn6nW8TtgbRvsFJ9OBS_jwxKeINLFl64_rj-kY0n9CLABcUdTV0hnuSUPDhhzRcopm7jyaHEZLbbf3ouAb6ckj8isLtsxPgN_1Z63hlTptKac4v0rbR9iCcuMX/s320/namewithI.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 94px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 197px;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
  220. &lt;div&gt;
  221. &lt;br /&gt;&lt;/div&gt;
  222. &lt;/div&gt;
  223. &lt;/div&gt;
  224. </content><link rel='replies' type='application/atom+xml' href='http://tamilprogramminng.blogspot.com/feeds/5442279859948749261/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tamilprogramminng.blogspot.com/2013/08/sql-9.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3691376985285892436/posts/default/5442279859948749261'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3691376985285892436/posts/default/5442279859948749261'/><link rel='alternate' type='text/html' href='http://tamilprogramminng.blogspot.com/2013/08/sql-9.html' title='எளிய தமிழில் SQL - பாகம் 9'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_5wU4pIpJfYpoP4jif9Grza5oJagCTPEcQVpp7IaAH2od1M1XGHRB7jHe69ZYg-Pe5P5L2X6xuZDKQ8RpeyVH4Pri_CEH6DvVqmN9VlGhLMoFsKp8IR7Bar9HqaAgdnd_Knu4YCfWw5x6/s72-c/empty.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3691376985285892436.post-735090338534934693</id><published>2013-08-08T04:52:00.003-07:00</published><updated>2013-08-08T04:52:26.991-07:00</updated><title type='text'>எளிய தமிழில் SQL - பாகம் 8</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
  225. &lt;h3 class=&quot;post-title entry-title&quot; style=&quot;background-color: white; font-family: Times, serif; font-size: 31px; font-weight: normal; line-height: 1.4em; margin: 0px; padding: 0px;&quot;&gt;
  226. &lt;a href=&quot;http://articles.techrepublic.com.com/5100-10878_11-6102265.html&quot; style=&quot;color: #2a6080; font-family: Georgia, Times, serif; font-size: 13px; line-height: 20.984375px; margin: 0px; padding: 0px; text-align: justify;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;How to install Sql Server 2005 Expression Edition?&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
  227. &lt;div class=&quot;post-body entry-content&quot; style=&quot;background-color: white; font-family: Georgia, Times, serif; font-size: 13px; line-height: 20.984375px; margin: 0px; padding: 0px; text-align: justify;&quot;&gt;
  228. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;ஏழாவது பாகத்தில் Relational operators, மற்றும் Logical Operators ஆகியவற்றைப் பார்த்தோம்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;Relational Operatorsல் &amp;lt;, &amp;gt;, &amp;gt;=, &amp;lt;=, =, != , &amp;lt;&amp;gt; போன்றவை வரும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;Logical Operatorsல் AND, OR, NOT போன்றவை வரும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;ஒரு குறிப்பிட்ட மதிப்பானது அதிகமா, குறைவா, சமமா, சமமில்லையா என சோதித்தறிய Relational Operators பயன்படுத்தலாம்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;ஒன்றுக்கு மேற்பட்ட கட்டுப்பாடுகளைத் தொடர்புபடுத்தி விடைகாண்பதற்கு Logical Operators பயன்படுத்தலாம்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;கணிதச் சமன்பாடுகளை, கூட்டல்,கழித்தல்,வகுத்தல்,பெருக்கல் போன்ற கணக்குகளைச் செய்வதற்காக Arithmetic Operators உள்ளன.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;அவை :&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;+ கூட்டல் (Addition)&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;- கழித்தல் (Subtraction)&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;* பெருக்கல் (Multiplication)&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;/ வகுத்தல் (Division)&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;உதாரணம்:&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;DECLARE @a int&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;DECLARE @b int&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;DECLARE @c int&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;SET @a = 100&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;SET @b = 150&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;SET @c = @a + @b&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;PRINT @c&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;மேலே ஒரு எளிய T-SQL நிரல் (Program) ஒன்றைக் கொடுத்துள்ளேன்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;@a, @b, @c ஆகியவை Variable எனப்படும். அதாவது மாறிகள். ஒவ்வொரு மாறிகளுக்கும் தனித்தனி மதிப்புகளைக் கொடுக்கிறோம். அதற்கு SET என்னும் keyword பயன்படும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;SET @c = @a + @b என்பதில் a, மற்றும் b ஆகிய இரண்டின் மதிப்பையும் + என்கிற கூட்டல் (Addition - Arithmetic Operator) அடையாளத்தைப் பயன்படுத்திக் கூட்டிக் கிடைக்கின்ற விடையை @c மூன்றாவது மாறியில் போட்டுவிடு - என அர்த்தம்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;PRINT @c எனக் கொடுத்ததும் cன் மதிப்பு 250 எனத் திரையில் காட்டும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;மேற்கூரிய எளிய நிரலில் + எனப்படும் ஒரு Arithmetic Operator பயன்படுத்தியுள்ளோம்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இது போல எளிய நிரல்களை எழுதிப் பாருங்கள்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இந்த நிரல்களை எழுதி விடை காண SQL Server Expression Edition 2005ல் நாம் என்ன செய்ய வேண்டும். அதன் வழிமுறைகளைக் காண்போம்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;உங்கள் Authentication எதுவாக இருக்கிறதோ அதைத் தேர்வு செய்தபிறகு, Connect ஐ அழுத்தவும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHNn7pZPTegRtXH5L5w9AGcdAAe11vYvDiSR-wPVeb719sTMBnyAhwZg4d3s4G6qKzlHSqyG25Iq8de-4wwqyiKkUCnNC9OEwNmzJUyZQXx9tlYA5ZhBad2_waa1099Q7BWnFQ-FTVhLIL/s1600-h/connect.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5296016873936840098&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHNn7pZPTegRtXH5L5w9AGcdAAe11vYvDiSR-wPVeb719sTMBnyAhwZg4d3s4G6qKzlHSqyG25Iq8de-4wwqyiKkUCnNC9OEwNmzJUyZQXx9tlYA5ZhBad2_waa1099Q7BWnFQ-FTVhLIL/s320/connect.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 237px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 320px;&quot; /&gt;&lt;/a&gt;திரையில் Object Explorer என்னும் ஒரு Window தெரியும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicGDoGzJOwZIUazMCRjFWexftVig_2bC7h8Tk9JIGmEeZj0VghhaSvJZk1nlylW5OuEeNs1QqD_9G06gJESpHwRPvcRahbZRsN9Q9VhZQa9deB49Vxs6KoTOwe8mvW6wP1Ru0yvJ5kIHTs/s1600-h/objectexplorer.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5296016872552148034&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicGDoGzJOwZIUazMCRjFWexftVig_2bC7h8Tk9JIGmEeZj0VghhaSvJZk1nlylW5OuEeNs1QqD_9G06gJESpHwRPvcRahbZRsN9Q9VhZQa9deB49Vxs6KoTOwe8mvW6wP1Ru0yvJ5kIHTs/s320/objectexplorer.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 184px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 320px;&quot; /&gt;&lt;/a&gt;அதில் பாகம்-5ல் நாம் ஏற்கனவே உருவாக்கிய Test எனப்படும் Database ஐத் தேர்வுசெய்யவும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLGKirhtpjTrmqYeRcCw3sJU_k9jrZIdwOlJCewTEedMmYnToW_TIYSl-l43VIXQ79EwTP8Ov10P2LB8cg-f7Y9_jEtkrf8Ysj_Uy1XRJPnAQW1P37SlX4uWBcaauXw8j5zNaxA7Wrp8Z5/s1600-h/databaseexpand.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5296016726096603906&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLGKirhtpjTrmqYeRcCw3sJU_k9jrZIdwOlJCewTEedMmYnToW_TIYSl-l43VIXQ79EwTP8Ov10P2LB8cg-f7Y9_jEtkrf8Ysj_Uy1XRJPnAQW1P37SlX4uWBcaauXw8j5zNaxA7Wrp8Z5/s320/databaseexpand.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 293px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 319px;&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEginrdMGUQkJSShjISitvF-TUZDsl3UopWxEwe05WO717v2xGY5Kyq1yYZgvM0mPeGYkX6P9O79Px3FkWr1NFI23FMisEu8AqlkLKEegdjvtflTSkaeOuaNlsY94SHwXHkseA7ENg0eF38Z/s1600-h/testsel.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5297146005701377314&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEginrdMGUQkJSShjISitvF-TUZDsl3UopWxEwe05WO717v2xGY5Kyq1yYZgvM0mPeGYkX6P9O79Px3FkWr1NFI23FMisEu8AqlkLKEegdjvtflTSkaeOuaNlsY94SHwXHkseA7ENg0eF38Z/s320/testsel.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 157px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 250px;&quot; /&gt;&lt;/a&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;File ==&amp;gt; New ==&amp;gt; Query with New Connection&amp;nbsp;&lt;/span&gt;இதைக் கிளிக்கவும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgn2mu6j5sb1Mi4_pesqK8ZAcICGqsjHuroPNMGPd8bQwE5DlUDJlWtz2wwRMPYS3YCLvs-xA3R2TyxGtyu9HzApUs5ynniSqY62-qSYeOzdyJcUiBvp3NIlkBjvq6CYM4-Edn5of9Cu54_/s1600-h/ctrln.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5297146008700669650&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgn2mu6j5sb1Mi4_pesqK8ZAcICGqsjHuroPNMGPd8bQwE5DlUDJlWtz2wwRMPYS3YCLvs-xA3R2TyxGtyu9HzApUs5ynniSqY62-qSYeOzdyJcUiBvp3NIlkBjvq6CYM4-Edn5of9Cu54_/s320/ctrln.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 104px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 320px;&quot; /&gt;&lt;/a&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;உடனே ஒரு வெள்ளைத் திரை கண் முன்னர் நிற்கும். இதுதான் T-SQLக்கான Editor. இதில் நாம் நிரல்களை எழுதிப் பழகலாம்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgerSwVziyACVfDjzsD7ksXcQCJXKKpBiJR0-jKptHpwrvwccmymcV9yfFBdUQ5h_na2e0dCP7oLtoKZBk8CSRK2wG39MGIoVlUub7pqXG5CBYNoCBiyHl0WveiFhS2aQalib8yPk3YWPf9/s1600-h/proeditor.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5297146006316293170&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgerSwVziyACVfDjzsD7ksXcQCJXKKpBiJR0-jKptHpwrvwccmymcV9yfFBdUQ5h_na2e0dCP7oLtoKZBk8CSRK2wG39MGIoVlUub7pqXG5CBYNoCBiyHl0WveiFhS2aQalib8yPk3YWPf9/s320/proeditor.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 112px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 320px;&quot; /&gt;&lt;/a&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;நிரல் எனப்படும் Programஐ எழுதிய பிறகு அதை இயக்கிப் பார்க்க F5 விசையை அழுத்தவும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இந்த Programன் விடை கீழே உள்ள சட்டத்தில் 250 எனக் காட்சியளிக்கும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi72Vrwfk-42O6Rjr-jyNzx7LaTM8qRhiboNCUXBud9PGfL-ZDVSItro4phQrr7YAFjK8_bvVGcxtBlDANzh-iNdGnnvmqknAg7_zMtx6LqWV7nfVWzdGBt6Vnpdv_UM5I51Dfpq0mVOrFV/s1600-h/answer.png&quot; style=&quot;color: #2a6080; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5297146166811312162&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi72Vrwfk-42O6Rjr-jyNzx7LaTM8qRhiboNCUXBud9PGfL-ZDVSItro4phQrr7YAFjK8_bvVGcxtBlDANzh-iNdGnnvmqknAg7_zMtx6LqWV7nfVWzdGBt6Vnpdv_UM5I51Dfpq0mVOrFV/s320/answer.png&quot; style=&quot;border: 1px solid rgb(238, 238, 238); cursor: pointer; display: block; height: 119px; margin: 0px auto 10px; padding: 5px; text-align: center; width: 257px;&quot; /&gt;&lt;/a&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இந்த programல் சில இடங்களில் நான் வேண்டுமென்றே தவறு செய்கிறேன். பிழைச்செய்தி எப்படி வருகிறது என்பதைக் காண்பதற்காகத்தான்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;DECLARE @a int&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;DECLARE @b int&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;color: #990000; font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;DECLAR @c int&lt;/span&gt;&lt;span style=&quot;color: #990000; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;---&amp;gt; தவறு (1) ஒரு E எழுத்தை விட்டுவிடுகிறேன்.&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;SET @a = 100&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;SET @b = 150&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;SET @c = @a + @b&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;color: #990000; font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;PRINTT @c&lt;/span&gt;&lt;span style=&quot;color: #990000; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;----&amp;gt; தவறு (2) ஒரு T எழுத்தை அதிகமாகக் கொடுக்கிறேன்.&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இப்போது F5 key ஐ அழுத்தி விடையை எதிர்பார்த்தால் என்ன கிடைக்கிறது?&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;color: #cc0000; margin: 0px; padding: 0px;&quot;&gt;Msg 102, Level 15, State 1, Line 3&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;color: #cc0000; margin: 0px; padding: 0px;&quot;&gt;Incorrect syntax near &#39;DECLAR&#39;.&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;color: #cc0000; margin: 0px; padding: 0px;&quot;&gt;Msg 137, Level 15, State 1, Line 6&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;color: #cc0000; margin: 0px; padding: 0px;&quot;&gt;Must declare the scalar variable &quot;@b&quot;.&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;color: #cc0000; margin: 0px; padding: 0px;&quot;&gt;Msg 137, Level 15, State 2, Line 7&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;color: #cc0000; margin: 0px; padding: 0px;&quot;&gt;Must declare the scalar variable &quot;@b&quot;.&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;எந்தெந்த வரிகளில் பிழைகள் என்பதைக் கீழே உள்ள சட்டத்தில் காட்டிவிடும். பிழைகளைச் சரிசெய்தபிறகுதான் விடை கிடைக்கும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இன்றையத் தேதி என்னவென்பதை T-SQL வாயிலாக எப்படிக் கண்டுபிடிப்பது?&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;DECLARE @today datetime&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;SET @today = getdate()&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;PRINT @today&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இங்கே @today என்பது ஒரு மாறி (Variable). அதனுடைய Data Type ஆனது datetime வகையைச் சேர்ந்தது.&amp;nbsp;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;getdate( ) என்பதை Function என்போம். இந்த Function ஆனது இன்றைய தேதிநேரத்தைக் கண்டறிய உதவும். அதை @today ல் பதிந்துவிடும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;PRINT @today எனக் கொடுத்ததும் கிடைத்த விடை :&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;Jan 30 2009 11:32PM&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இதை மிகச் சுருக்கமாக :&amp;nbsp;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;PRINT getdate( )&amp;nbsp;&lt;/span&gt;என்றும் கொடுக்கலாம்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;color: #009900; font-size: 11px; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;குறிப்பு : எழுதிய program ஐ இயக்கி / ஓட்டி / run / execute செய்து பார்ப்பதற்கு F5 விசையை keyboardல் அழுத்த வேண்டும்.&lt;/span&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
  229. &lt;/div&gt;
  230. </content><link rel='replies' type='application/atom+xml' href='http://tamilprogramminng.blogspot.com/feeds/735090338534934693/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tamilprogramminng.blogspot.com/2013/08/sql-8.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3691376985285892436/posts/default/735090338534934693'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3691376985285892436/posts/default/735090338534934693'/><link rel='alternate' type='text/html' href='http://tamilprogramminng.blogspot.com/2013/08/sql-8.html' title='எளிய தமிழில் SQL - பாகம் 8'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHNn7pZPTegRtXH5L5w9AGcdAAe11vYvDiSR-wPVeb719sTMBnyAhwZg4d3s4G6qKzlHSqyG25Iq8de-4wwqyiKkUCnNC9OEwNmzJUyZQXx9tlYA5ZhBad2_waa1099Q7BWnFQ-FTVhLIL/s72-c/connect.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3691376985285892436.post-7636111778297917262</id><published>2013-08-08T04:51:00.001-07:00</published><updated>2013-08-08T04:51:26.491-07:00</updated><title type='text'>எளிய தமிழில் SQL - பாகம் 7</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
  231. &lt;h3 class=&quot;post-title entry-title&quot; style=&quot;background-color: white; font-family: Times, serif; font-size: 31px; font-weight: normal; line-height: 1.4em; margin: 0px; padding: 0px;&quot;&gt;
  232. &lt;span style=&quot;font-family: Georgia, Times, serif; font-size: 13px; line-height: 20.984375px; text-align: justify;&quot;&gt;ஏற்கனவே பதிந்துள்ள தகவல்களைத் தேடி எடுக்கும்போது மேலே குறிப்பிட்டுள்ள அடையாளங்களைப் பயன்படுத்தி வடிகட்டலாம். மில்லியன் கணக்கில் பதிந்திருக்கும் recordsல் இருந்து குறிப்பிட்ட சில rows (records) ஐ மட்டும் நமது தேவைக்காகத் தேடி எடுக்கும் செயலுக்குத் துணைபுரிபவை Queries ஆகும். DQL என்றால் Data Query Language.&lt;/span&gt;&lt;/h3&gt;
  233. &lt;div class=&quot;post-body entry-content&quot; style=&quot;background-color: white; font-family: Georgia, Times, serif; font-size: 13px; line-height: 20.984375px; margin: 0px; padding: 0px; text-align: justify;&quot;&gt;
  234. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இதற்கு SELECT எனப்படும் கட்டளையைப் பயன்படுத்துகிறோம். SELECT என்றால் தேர்வு செய் என அர்த்தம். ஆயிரக்கணக்கான, லட்சக்கணக்கான தகவல்களில் இருந்து நமது தேவைக்கேற்ற தகவலை மட்டும் தேடியெடுத்துத் தருவதற்கு SELECT ஐப் பயன்படுத்தலாம்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;ஒரு மிக மிக எளிய உதாரணம் ஒன்று.&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;முன்பெல்லாம் 10ம் வகுப்பு, 12ம் வகுப்பு தேர்வு முடிவுகள் அறிவிக்கப்பட்ட நாளின்போது மாலைப்பதிப்பு நாளிதழ்களான மாலைமுரசு, மாலைமலர் போன்றவற்றில் தேர்வில் தேரியோரின் எண்கள் வெளிவரும். பின்பு காலைப்பதிப்பிலும் வேறு வேறு நாளிதழ்களில் வெளிவரும். இன்றும் கூட இது நடைமுறையில் இருக்கும் ஒன்றுதான்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;6,75,643 மாணவர்கள் தேர்வெழுதினார்கள் எனில் அதில் 80% தேர்வாகி இருந்தால் 540514 பேர்களின் எண்கள் கல்விமாவட்ட வாரியாக நாளிதழில் வெளியாகி இருக்கும். இதில் ஒவ்வொருவரின் எண்ணும் வந்திருக்கிறதா? இல்லையா? என பட்டிமன்றமே நடக்கும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;ஆனால் தற்போது தேர்வு அறிக்கைகளும், தேர்வு முடிவுகளும் இணையத்தில் வெளியிடுகிறார்கள். நாம் நமது பதிவெண்ணை மட்டும் கொடுத்தால் உடனே முடிவுகள் மட்டுமல்லாமல் ஒவ்வொரு பாடத்திலும் எவ்வளவு மதிப்பெண்கள் எடுத்துள்ளோம் என்பது முதற்கொண்டு நொடிகளில் திரையில் காட்சியளிக்கிறது.இது எவ்வாறு சாத்தியம்?&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;6,75,643 பேர்களின் தகவல்கள் அனைத்தையும் ஒவ்வொரு record (row) ஆக கணினியில் உள்ள Databaseல் ஏற்றிவிடுவார்கள். இதற்கு ஒரு குழு இயங்கும். அவர்கள் ஒவ்வொருவரின் பதிவெண், பள்ளியின் பெயர், பாடங்கள், ஒவ்வொரு பாடத்திலும் எத்தனை மதிப்பெண்கள் பெறப்பட்டன போன்றவற்றை Databaseல் ஏற்றிவிடுவார்கள். இந்த குழு மின்னல் வேகத்தில் தகவல்களை ஏற்றிவிடும் வல்லமை கொண்டது.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;எல்லோருடைய தகவல்களும் ஒட்டுமொத்தமாக Databaseல் ஏற்றப்பட்டவுடன் முடிவு அறிக்கைத் தேதியை வெளியிடுவார்கள்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;தேர்வு முடிவு நாள் அன்று நாம் என்ன செய்கிறோம். நமது பதிவெண்ணையோ / நண்பர்கள் / உறவினர்களின் பதிவெண்ணையோ மட்டும் கணினியில் உள்ளிடுகிறோம்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;எனது நண்பரின் பதிவெண் 059169 எனக் கொண்டால், இந்தக் குறிப்பிட்ட 059169 என்கின்ற எண்ணை 6,75,643 பேர்களின் தகவல்கள் அடங்கிய Databaseல் இருந்து நொடிகளில் தேடியெடுத்துவிடும் வல்லமை SELECT கட்டளைக்கு உண்டு.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;எனது பதிவெண்ணுக்காக ஏற்கனவே என்ன தகவல்கள் ஏற்றப்பட்டிருக்கிறதோ அனைத்தையும் திரையில் காணலாம். இந்தத் தேடியெடுத்துத் தருவதுதான் QUERY எனப்படுகிறது.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இதற்காக SELECT கட்டளையுடன் உறுதுணையாக உதவுவதற்குப் பயன்படுபவையே Operators ஆகும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;Operatorsகளையும் அவற்றிற்கான பயன் மற்றும் குறுவிளக்கம் : கீழே&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;059169 எண்ணுக்கு உரிய தகவல்களை எனக்காகக் காண்பி = Equal&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;தேரியோர்களை மட்டும் காண்பி = Equal&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;தேராதவர்களைக் காண்பிக்காதே &amp;lt;&amp;gt; Not equal&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;80%க்கு மேல் மதிப்பெண்கள் வாங்கியோர் யார் யார்? &amp;gt; Greater than&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;50%க்குக் கீழே வாங்கியோர் யார் யார்? &amp;lt;= Less than or equal&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;34 மதிப்பெண்கள் அல்லது அதைவிடக் கீழே எடுத்தவர்கள் யார் யார்?&amp;lt;= Less than or equal கணக்குப் பாடத்தில் 80லிருந்து 100க்குள் எத்தனை பேர் மதிப்பெண்கள் எடுத்தனர் BETWEEN Between an inclusive range ஒரு குறிப்பிட்ட எழுத்தில் ஆரம்பிக்கும் பெயர்களையுடையவர்கள் யார் யார்? LIKE Search for a pattern குறிப்பிட்ட SET { } க்குள் அகப்படும் தகவல்களை மட்டும் எடுத்துக்கொண்டு வா IN If you know the exact value you want to return for at least one of the columns இது போக AND, OR, NOT எனப்படும் மூன்று முக்கிய Operators உள்ளன. இவற்றின் பயன் என்னவென்றால் தேடியெடுக்கும் முடிவுகளைக் கட்டுப்படுத்துவதே. இத்தனை லட்சம் தகவல்களில் நமக்குத் தேவைப்படும் தகவல்களை மட்டும் வடிகட்டி எடுப்பதற்கு இந்த Operators தான் காரணம். AND -- தேடும்போது எத்தனை கட்டுப்பாடுகள் விதிக்கிறோமோ, அத்தனை கட்டுப்பாடுகளுக்கும் சம்மதிக்கக் கூடிய தகவல்களை மாத்திரம் எடுத்து வருவதற்கு. உதாரணம்: 5 பாடங்களில் அனைத்துப் பாடங்களிலும் தேரியிருந்தால் மட்டுமே மாணவர் அடுத்த வகுப்புக்குச் செல்லும் தகுதியடைகிறார். அதாவது அனைத்துக் கட்டுப்பாடுகளுக்கும் சம்மதித்திருக்கிறார். கட்டுப்பாடுகள் என்பதை Condition என்பதற்காகக் கொடுத்திருக்கிறேன். 5 Conditions இருக்கின்றன. அனைத்து Condition களும் ஏற்றுக்கொள்ளப்பட்டிருக்க வேண்டும். அதுவே AND Operatorன் வெற்றியை உறுதிப்படுத்தும். OR -- தேடும்போது இந்தக் கட்டுப்பாடோ அல்லது வேறொன்றோ எதாவது ஒன்றுக்குச் சம்மதிக்கக் கூடிய தகவல்களைக் கொணர்வதற்கு. 5 பாடங்களில் ஏதேனும் ஒன்றில் தேர்ச்சியடையாவிட்டாலும் ஒட்டுமொத்தமாக மாணவரானவர் தேர்வில் தவறிவிட்டார். இதற்கு OR. இந்தப் பாடம் அல்லது அந்தப் பாடம், அல்லது வேறொன்று எதாவது ஒன்றில் தேர்வடையாவிட்டாலும் ஒட்டுமொத்தமாக FAIL எனக் குறிப்பிட OR பயன்படுத்தலாம். 5 Conditionsல் ஏதேனும் ஒரு Condition மட்டும் Satisfy ஆனாலே ORன் வெற்றி தீர்மாணிக்கப்பட்டு விடுகிறது. NOT - எந்தக் கட்டுப்பாடு விதிக்கிறோமோ அதற்கு முரண்பாடான தகவல்களைப் பெறுவதற்கு. உதாரணமாக தேர்வில் தேறாதவர்களை மட்டும் காண்பி. இதற்கு NOT உதவும். AND, OR, NOT இவற்றை தர்க்க ரீதியிலான செயல்பாடுகள் என்போம். அதாவது Logical Operators. நீ தவறைச் செய்தால் தண்டிக்கப்படுவாய் - நேர்மறை. நீ தவறைச் செய்யாவிட்டால் தண்டிக்கப்படமாட்டாய் -- இந்த மாதிரி இடங்களில் NOT பயன்படுத்தலாம்.&lt;div style=&quot;margin: 0px; padding: 0px; text-align: center;&quot;&gt;
  235. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;= Equal&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&amp;gt; Not equal&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;&amp;gt; Greater than&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;margin: 0px; padding: 0px;&quot;&gt;&amp;gt;= Greater than or equal&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;margin: 0px; padding: 0px;&quot;&gt;&amp;lt;= Less than or equal&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;margin: 0px; padding: 0px;&quot;&gt;BETWEEN Between an inclusive range&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;margin: 0px; padding: 0px;&quot;&gt;LIKE Search for a pattern&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;margin: 0px; padding: 0px;&quot;&gt;IN If you know the exact value you want to return for at least one of the columns&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  236. &lt;div&gt;
  237. &lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  238. &lt;/div&gt;
  239. &lt;/div&gt;
  240. </content><link rel='replies' type='application/atom+xml' href='http://tamilprogramminng.blogspot.com/feeds/7636111778297917262/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tamilprogramminng.blogspot.com/2013/08/sql-7.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3691376985285892436/posts/default/7636111778297917262'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3691376985285892436/posts/default/7636111778297917262'/><link rel='alternate' type='text/html' href='http://tamilprogramminng.blogspot.com/2013/08/sql-7.html' title='எளிய தமிழில் SQL - பாகம் 7'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3691376985285892436.post-6699699390592223057</id><published>2013-08-08T04:50:00.002-07:00</published><updated>2013-08-08T04:50:38.568-07:00</updated><title type='text'> எளிய தமிழில் SQL - பாகம் 6</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
  241. &lt;br /&gt;&lt;br /&gt;
  242. &lt;div class=&quot;post-body entry-content&quot; style=&quot;background-color: white; font-family: Georgia, Times, serif; font-size: 13px; line-height: 20.984375px; margin: 0px; padding: 0px; text-align: justify;&quot;&gt;
  243. &lt;div style=&quot;margin: 0px; padding: 0px; text-align: center;&quot;&gt;
  244. &lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;DQL: SELECT&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;DML: DELETE, INSERT, UPDATE&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;DDL: CREATE, DROP, TRUNCATE, ALTER&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;TCL: COMMIT, ROLLBACK, SAVEPOINT&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;DCL: GRANT, REVOKE&lt;/span&gt;&lt;/div&gt;
  245. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;மேலே சில கட்டளைகளை (Commands)கொடுத்துள்ளேன். இந்தக் கட்டளைகள் மூலம் Databaseஐ நாம் நமது கட்டுப்பாட்டுக்குள் கொண்டு வரலாம்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;DQL என்பது&amp;nbsp;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;Data Query Language&lt;/span&gt;. ஒரு Databaseன் Tableல் ஏற்கனவே நாம் பதிந்துவைத்துள்ள தகவல்களை தேடி எடுப்பதற்கு. உதாரணமாக 1000 rows இருப்பதாகக் கொள்வோம். அதில் குறிப்பிட்ட சில rows மட்டும் நமக்குத் தேவையெனில் அவற்றை மட்டும் தேடி எடுக்க DQL . இதற்காக SELECT என்கிற கட்டளை பயன்படும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;DML என்பது&amp;nbsp;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;Data Manipulation Language&lt;/span&gt;. ஏற்கனவே பதிந்துவைத்திருக்கும் தகவல்களில் மாற்றங்களை ஏற்படுத்த, அழிக்க, உருவாக்க. (தகவல்களைத் தான் மாற்றுகிறதே ஒழிய ஒரு Tableன் Structureல் எந்த மாற்றமும் நிகழாது).&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;DDL என்பது&amp;nbsp;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;Data Definition Language&lt;/span&gt;. புதிய Database (அ) Table போன்றவற்றை உருவாக்க. அதாவது Tableன் Structure ஐ உருவாக்க, ஒட்டுமொத்த Table ஐயுமே அழிக்க, மாற்றங்கள் செய்ய. ஒரு குறிப்பிட்ட Column ன் Data Type ஐ மாற்ற.புதிய Column ஐ உருவாக்க, தேவையற்ற Column இருப்பின் அதை நீக்க.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;TCL என்றால்&amp;nbsp;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;Transaction Control Language&lt;/span&gt;. ஒரு நிரலை இயக்கும்போது ஏதேனும் பிழைகள் ஏற்பட்டால், பிழை ஏற்படுவதற்கு முன்னர் வரை ஏதேனும் மாற்றங்கள் நிகழ்ந்திருந்தால் அவையனைத்தையும் நிராகரித்து முந்தைய நிலைக்குக் கொண்டு செல்வதற்கு.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;TCL பற்றி சிறிது விளக்கமாகப் பார்ப்போம்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;உதாரணமாக ஒன்றுக்கு மேற்பட்ட Database அல்லது Tableகளில் நாம் ஒரு குறிப்பிட்ட Program ஐ இயக்குவதாகக் கொள்வோம். ஒரு Tableல் உள்ள ஒரு மதிப்பைக் கழித்து (முதலாவது செயல்), அடுத்த Tableல் உள்ள ஒரு குறிப்பிட்ட மதிப்புடன் கூட்டச் செய்ய(இரண்டாவது செயல்) முயற்சிக்கிறோம்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;முதல் செயல் நல்லபடியாக நிறைவுற்றுவிடுகிறது. ஆனால் இரண்டாவது செயல் நிறைவேறுவதற்கு முன்னர் ஏதேனும் தொழில்நுட்பக் கோளாறு நிகழ்ந்தால் என்ன ஆகும்?&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;முதலாவது Tableல் அந்த மதிப்பு கழிக்கப்பட்டு இருக்கும். ஆனால் கோளாறு காரணமாக இரண்டாவது Tableல் அந்த மதிப்பு கூட்டப்பட்டு இருக்காது.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;அப்படியெனில் இதை ஒரு சரியான நிகழ்வாக ஏற்றுக்கொள்ளக் கூடாது. முதலில் கழிக்கப்பட்ட மதிப்பை reverse செய்து , தலைகீழாக மீண்டும் பழைய நிலைக்குக் கொண்டுவந்துவிட வேண்டும். அப்போதுதான் முறையான நிகழ்வு.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;நல்ல உதாரணம் ஒன்று:&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;உங்களது வங்கியின் ATM அட்டையை, ATM இயந்திரத்தில் செருகி பணம் எடுக்க முயற்சிக்கிறீர்கள். எத்தனை ரூபாய் பணம் என்பதையும் தட்டிவிட்டீர்கள். இயந்திரமானது பணத்தை எண்ணிக்கொண்டிருக்கும் சத்தம் கேட்கிறது. திடீரென்று கோளாறு. Battery down - Power Cut. ஏதோ ஒரு கோளாறு. என்ன ஆகும்?&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;பணம் உங்கள் கைக்கு வராது.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;உங்கள் வங்கிக்கணக்கிலிருந்து பணம் எடுக்கப்பட்டுக் கழிக்கப்பட்டு இருக்கும். ஆனால் உங்கள் கைக்குப் பணம் வந்திருக்காது. இப்படியே விட்டுவிட்டால் முறையாகுமா?&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;இந்த மாதிரி இக்கட்டான சமயத்தில் உதவுவதுதான்&amp;nbsp;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;Transaction Control.&lt;/span&gt;&amp;nbsp;TCL ன் பணி என்னவென்றால் ஏதேனும் பிழை ஏற்பட்டிருக்கும்போது அதைத் தலைகீழாக ஆக்கி, reverse செய்து (Undo) ஒட்டுமொத்த செயல்களையும் பழைய நிலைக்கு ஆக்குவதே.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;TCL இருப்பதால் உங்கள் வங்கிக்கணக்கிலிருந்து கழிக்கப்பட்ட பணமானது, இயந்திரக்கோளாறு ஏற்பட்ட உடனேயே, தலைகீழ் இயக்கத்தால் திரும்ப உங்கள் accountல் சேர்க்கப்பட்டுவிடும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-size: 11px; margin: 0px; padding: 0px;&quot;&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;(இது எனக்கு இரண்டுமுறை நடந்து இருக்கிறது. கடந்த 3 ஆண்டுகளில் இரண்டுமுறை இந்த TCL இயக்கத்தால் பணம் பரிபோகாமல் தப்பித்தது.)&lt;/span&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;1) எந்தப் பிழையும் நிகழாமல் இருக்கும்போது ஒட்டுமொத்த நிரலும் நல்லபிள்ளையாக இயங்கி பரிவர்த்தனையை ஒழுங்காக நிறைவு செய்யும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;2) ஏதேனும் பிழை ஏற்பட்டால் உடனே நிரலானது தனது இயக்கத்தை நிறுத்திவிட்டு, அதுவரை செய்யப்பட்ட இயக்கத்தை reverse செய்து தகவல் இழப்பைத் தடுத்துவிடுகிறது.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;முந்தைய பாடத்தில் Authorization பற்றிப் பார்த்தோம். ஒரு குறிப்பிட்ட பயனாளருக்கு ஒரு Databaseஐப் பார்வையிட மட்டும் அனுமதிக்க DCL உதவும்.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;DCL என்றால்&amp;nbsp;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;Data Control Language.&lt;/span&gt;&amp;nbsp;ஒரு குறிப்பிட்ட பயனர் உருவாக்கிய Database,Table களின் உரிமங்களை அடுத்த பயனாளருக்கு விட்டுத்தருவதற்கு. அல்லது அடுத்தவருக்கு விட்டுத்தந்த சலுகைகளை நிராகரிப்பதற்கு.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;GRANT&amp;nbsp;&lt;/span&gt;என்றால் சலுகைகளை வழங்குவது. உரிமங்களை வழங்குவதற்கு.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;REVOKE&amp;nbsp;&lt;/span&gt;என்றால் கொடுத்த சலுகைகளை / உரிமைகளைத் திரும்பப் பெருவதற்கு.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;DROP&amp;nbsp;&lt;/span&gt;என்பது ஒட்டுமொத்த Database (அ) Table ஐ அழிப்பதற்கு (தகவலும், Structureம் அழிந்துவிடும்).&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;TRUNCATE&amp;nbsp;&lt;/span&gt;என்பது தகவல்களை மட்டும் அழிப்பதற்கு (Structure அழியாது).&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;SELECT&amp;nbsp;&lt;/span&gt;பதியப்பட்ட தகவல்களைத் தேடித் தருவதற்கு&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;INSERT&amp;nbsp;&lt;/span&gt;புதிய rowவை உருவாக்க&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;UPDATE&amp;nbsp;&lt;/span&gt;பழைய rowன் தகவலை மாற்றுவதற்கு&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;DELETE&amp;nbsp;&lt;/span&gt;பதிந்திருக்கும் row / rows ஐ அழிப்பதற்கு&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;CREATE&lt;/span&gt;&amp;nbsp;புதிய Database / Table ஐ உருவாக்க&amp;nbsp;&lt;/div&gt;
  246. &lt;/div&gt;
  247. </content><link rel='replies' type='application/atom+xml' href='http://tamilprogramminng.blogspot.com/feeds/6699699390592223057/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tamilprogramminng.blogspot.com/2013/08/sql-6.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3691376985285892436/posts/default/6699699390592223057'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3691376985285892436/posts/default/6699699390592223057'/><link rel='alternate' type='text/html' href='http://tamilprogramminng.blogspot.com/2013/08/sql-6.html' title=' எளிய தமிழில் SQL - பாகம் 6'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3691376985285892436.post-4748888094657262464</id><published>2013-08-08T04:30:00.003-07:00</published><updated>2013-08-08T04:30:20.713-07:00</updated><title type='text'> எளிய தமிழில் SQL - பாகம் 5</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
  248. &lt;span style=&quot;color: #141a87; font-family: SooriyanDotCom, Sooriyan, Arial, Tahoma; line-height: 1.4em;&quot;&gt;SQL&lt;/span&gt;&lt;br /&gt;
  249. &lt;div class=&quot;content clearfix&quot; style=&quot;clear: left; color: #141a87; font-family: SooriyanDotCom, Sooriyan, Arial, Tahoma; line-height: 1.4em; margin: 0px; min-height: 3em; overflow: hidden; padding: 0px;&quot;&gt;
  250. &lt;div style=&quot;margin: 0px; padding: 0px;&quot;&gt;
  251. Server 2005 Express Edition ஆனது Microsoft நிறுவனத்தால்வழங்கப்படும் ஒரு&lt;br /&gt;
  252. இலவச மென்பொருள். இதை நீங்கள் Microsoft தளத்திலிருந்து&amp;nbsp;&lt;a href=&quot;http://www.microsoft.com/downloads/details.aspx?FamilyID=220549b5-0b07-4448-8848-dcc397514b41&amp;amp;DisplayLang=en&quot; rel=&quot;nofollow&quot; style=&quot;-webkit-transition: 1s; color: #105289; margin: 0px; padding: 0px; text-decoration: none; transition: 1s;&quot; target=&quot;_blank&quot;&gt;இந்த Link&lt;/a&gt;&lt;br /&gt;
  253. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  254. &lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;Database ல் நாம் என்ன செய்யப்போகிறோம்?&lt;/strong&gt;&lt;br /&gt;
  255. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  256. CRUD என்கிற Create, Read, Update, Delete இந்தச் செயல்களைத்தான் செய்யப்போகிறோம்.&lt;br /&gt;
  257. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  258. MySQL ஐ Sun Micro System வாங்கிவிட்டாலும் அதன் MySQL Community Server ஐ இலவசமாகவே வழங்குகிறது. அதைத் தரவிறக்கம் செய்வதற்கு&amp;nbsp;&lt;a href=&quot;http://dev.mysql.com/downloads/mysql/5.1.html#downloads&quot; rel=&quot;nofollow&quot; style=&quot;-webkit-transition: 1s; color: #105289; margin: 0px; padding: 0px; text-decoration: none; transition: 1s;&quot; target=&quot;_blank&quot;&gt;இங்கே&lt;/a&gt;&lt;br /&gt;
  259. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  260. ஆனால்MySQL&lt;br /&gt;
  261. Enterprise Edition ஆனது இலவசமன்று. நான் அலுவலகத்திலும்,வீட்டிலும் SQL&lt;br /&gt;
  262. Server 2005ன் Express Edition தான் பயன்படுத்துகிறேன்.&lt;br /&gt;
  263. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  264. இந்தமென்பொருளை&lt;br /&gt;
  265. நிறுவும்போது Administratorக்கான User name, passwordமுதலியவற்றைக்&lt;br /&gt;
  266. கேட்கும். அவற்றைக் கொடுக்கவும். மேலும் அவற்றை நினைவில்கொள்ளவும்.&lt;br /&gt;
  267. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  268. முறைப்படி நிறுவிய பிறகு Sql Server Express ஐ இயக்கவும். இதற்கு ஒரு குறுக்குவழியாக&amp;nbsp;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;Start ==&amp;gt; Run ==&amp;gt; SQLWB&amp;nbsp;&lt;/strong&gt;எனக் கொடுத்தால் உடனே பயன்பாட்டின் முதல் திரை கண்முன்னே நிற்கும்.&lt;br /&gt;
  269. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  270. பாதுகாப்புகாரணங்களுக்காக&lt;br /&gt;
  271. உங்களிடம் பயனர் கணக்கையும், கடவுச்சொல்லையும் (User name&amp;amp; password)&lt;br /&gt;
  272. எதிர்பார்க்கும். Install செய்யும்போது என்னகொடுத்தீர்களோ அதைக் கொடுத்து&lt;br /&gt;
  273. உள்ளே செல்லலாம்.&lt;br /&gt;
  274. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  275. நிறுவும்போதேஎந்தவிதமான நுழைவாயில் என்பதைக்&lt;br /&gt;
  276. கூறிவிடுங்கள். அதாவது Authenticationஆனது Windows Authentication அல்லது&lt;br /&gt;
  277. SQL Server Authentication இரண்டில்எதோ ஒன்றா? அல்லது இரண்டுமா? என்பதைக்&lt;br /&gt;
  278. கூறிவிடவும்.&lt;br /&gt;
  279. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  280. &lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;Authentication என்றால் என்ன?&lt;/strong&gt;&lt;br /&gt;
  281. சரியானபயனர்&lt;br /&gt;
  282. பெயரும், Passwordம் கொடுத்தால் மட்டுமே உள்நுழைய அனுமதிக்கும்செயல். என்&lt;br /&gt;
  283. வீடு பூட்டியிருக்கிறது. வீட்டிற்கு இரண்டு சாவிகள். ஒன்றுஎன்னிடமும்,&lt;br /&gt;
  284. மற்றொன்று மகனிடம் உள்ளது. சரியான சாவியைப் போட்டு நானோஅல்லது மகனோ&lt;br /&gt;
  285. திறக்கலாம். தவறான சாவியைப் பிரயோகம் செய்தால் வீட்டைத்திறக்க இயலாது.&lt;br /&gt;
  286. இதுவே Authentication எனப்படும். முறையான User Nameமற்றும் Password&lt;br /&gt;
  287. கொடுக்கும் செயல்.&lt;br /&gt;
  288. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  289. &lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;Authorization என்பது என்ன?&lt;/strong&gt;&lt;br /&gt;
  290. ஒருஅலுவலகத்தில்&lt;br /&gt;
  291. 30 பேர் வேலை செய்கிறார்கள் என வைத்துக்கொள்வோம். அதில்அனுபவ முதிர்ச்சி&lt;br /&gt;
  292. கொண்டவர், தற்போதுதான் கல்வியை முடித்து முதன்முதலாகவேலைக்கு வருபவர்,&lt;br /&gt;
  293. அனைவருக்கும் மூத்த தலைவர் எனப் பலவித பணியாளர்கள்இருப்பார்கள்.&lt;br /&gt;
  294. ஒவ்வொருவருக்கும் ஒவ்வொரு பணி. இதில் யாருக்கு அதிக சிறப்புஉரிமைகள்&lt;br /&gt;
  295. கொடுக்கப்படுகின்றன, யாருக்குப் பல உரிமைகள் மறுக்கப்படுகின்றன -என்பதே&lt;br /&gt;
  296. Authorization ஆகும்.&lt;br /&gt;
  297. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  298. Chess விளையாட்டில் சிப்பாய்,மந்திரி, யானை,&lt;br /&gt;
  299. குதிரை, அரசன், அரசி என அனைவருக்கும் ஒவ்வொரு உரிமைகள்இருக்கும்.&lt;br /&gt;
  300. ஒருவருக்கு இருக்கும் சிறப்பு உரிமைகள் அடுத்தவருக்குஇருக்காது. அதுதான்&lt;br /&gt;
  301. Authorization.&lt;br /&gt;
  302. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  303. Authentication செயலானது முடிந்தபிறகு Authentication சரிபார்க்கும் செயல் நடைபெறும்.&lt;br /&gt;
  304. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  305. Administrator என்பவருக்கு மிக அதிக உரிமை. இது போல ஒவ்வொரு பயனருக்கும் ஒவ்வொருவிதமான உரிமைகள். இதை Role என்பார்கள்.&lt;br /&gt;
  306. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  307. நமது கணினியில் நாமே நிறுவிக்கொள்கிறோம். அதனால் பெரும்பாலும் நாம் இதில் Windows Authentication ஐத் தேர்வு செய்யலாம்.&lt;br /&gt;
  308. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  309. SQLServer&lt;br /&gt;
  310. Authentication கொடுத்தால் ஒவ்வொரு முறையும் கடவுச்சொல்லைக்கொடுத்து உள்&lt;br /&gt;
  311. நுழையவேண்டி வரும். அல்லது அதை சேமித்து வைக்கும்&lt;br /&gt;
  312. வசதியைப்பயன்படுத்திக்கொள்ளலாம்.&lt;br /&gt;
  313. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  314. உங்கள் Authentication எதுவாக இருக்கிறதோ அதைத் தேர்வு செய்தபிறகு, Connect ஐ அழுத்தவும்.&lt;br /&gt;
  315. &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHNn7pZPTegRtXH5L5w9AGcdAAe11vYvDiSR-wPVeb719sTMBnyAhwZg4d3s4G6qKzlHSqyG25Iq8de-4wwqyiKkUCnNC9OEwNmzJUyZQXx9tlYA5ZhBad2_waa1099Q7BWnFQ-FTVhLIL/s1600-h/connect.png&quot; rel=&quot;nofollow&quot; style=&quot;-webkit-transition: 1s; color: #105289; margin: 0px; padding: 0px; text-decoration: none; transition: 1s;&quot; target=&quot;_blank&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHNn7pZPTegRtXH5L5w9AGcdAAe11vYvDiSR-wPVeb719sTMBnyAhwZg4d3s4G6qKzlHSqyG25Iq8de-4wwqyiKkUCnNC9OEwNmzJUyZQXx9tlYA5ZhBad2_waa1099Q7BWnFQ-FTVhLIL/s320/connect.png&quot; style=&quot;border-width: 0px; height: 237px; margin: 0px; padding: 0px; width: 320px;&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
  316. வாயிலாக இறக்கிக்கொண்டு நிறுவிக்கொள்ளவும். எல்லா Database களுமே அவற்றின்&lt;br /&gt;
  317. கட்டமைப்பில் கிட்டத்தட்ட சமானமாகவே இருக்கின்றன. சொடுக்கவும்.திரையில் Object Explorer என்னும் ஒரு Window தெரியும்.&lt;br /&gt;
  318. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  319. &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicGDoGzJOwZIUazMCRjFWexftVig_2bC7h8Tk9JIGmEeZj0VghhaSvJZk1nlylW5OuEeNs1QqD_9G06gJESpHwRPvcRahbZRsN9Q9VhZQa9deB49Vxs6KoTOwe8mvW6wP1Ru0yvJ5kIHTs/s1600-h/objectexplorer.png&quot; rel=&quot;nofollow&quot; style=&quot;-webkit-transition: 1s; color: #105289; margin: 0px; padding: 0px; text-decoration: none; transition: 1s;&quot; target=&quot;_blank&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicGDoGzJOwZIUazMCRjFWexftVig_2bC7h8Tk9JIGmEeZj0VghhaSvJZk1nlylW5OuEeNs1QqD_9G06gJESpHwRPvcRahbZRsN9Q9VhZQa9deB49Vxs6KoTOwe8mvW6wP1Ru0yvJ5kIHTs/s320/objectexplorer.png&quot; style=&quot;border-width: 0px; height: 184px; margin: 0px; padding: 0px; width: 320px;&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
  320. அதில் Databaseல் Right Click செய்து New Database ஐ click செய்யவும்.&lt;br /&gt;
  321. &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHTnVjru6VIoKA6nXcJRq1USVwIDfLbkbMaIVA46HhOuBKABW2_etlft5O3MJVKgty-8n5Ix_wG-tfCV4UPoDzOrjuHN_vq8qpr8gqAU1bin8BWZgjAYkmbG2GMvrhDWfnXtXuiYs6Zb6A/s1600-h/newdatabase.png&quot; rel=&quot;nofollow&quot; style=&quot;-webkit-transition: 1s; color: #105289; margin: 0px; padding: 0px; text-decoration: none; transition: 1s;&quot; target=&quot;_blank&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHTnVjru6VIoKA6nXcJRq1USVwIDfLbkbMaIVA46HhOuBKABW2_etlft5O3MJVKgty-8n5Ix_wG-tfCV4UPoDzOrjuHN_vq8qpr8gqAU1bin8BWZgjAYkmbG2GMvrhDWfnXtXuiYs6Zb6A/s320/newdatabase.png&quot; style=&quot;border-width: 0px; height: 109px; margin: 0px; padding: 0px; width: 191px;&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
  322. புதியசட்டத்தில்&lt;br /&gt;
  323. Databaseக்கான பெயர் கொடுக்கவும். நான் Test எனக்கொடுத்துள்ளேன். பிறகு OK&lt;br /&gt;
  324. கொடுத்தால் Test என்கிற பெயரில் ஒரு Databaseஉருவாகிவிடும்.&lt;br /&gt;
  325. &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEib9gSY5RJ1o_nTTp-DznuQNpNQf6u4Z9AtcwleGDtkpTuTOv5wEcMVAla2LuTkO47J_6Ubpq-ICcgPadHh7HtlZ8HUTwFLOGqH0YcMtN54Ad094CzHsbrta64Vr9AV633PEWjAseMTxUlt/s1600-h/databasename.png&quot; rel=&quot;nofollow&quot; style=&quot;-webkit-transition: 1s; color: #105289; margin: 0px; padding: 0px; text-decoration: none; transition: 1s;&quot; target=&quot;_blank&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEib9gSY5RJ1o_nTTp-DznuQNpNQf6u4Z9AtcwleGDtkpTuTOv5wEcMVAla2LuTkO47J_6Ubpq-ICcgPadHh7HtlZ8HUTwFLOGqH0YcMtN54Ad094CzHsbrta64Vr9AV633PEWjAseMTxUlt/s320/databasename.png&quot; style=&quot;border-width: 0px; height: 128px; margin: 0px; padding: 0px; width: 320px;&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLGKirhtpjTrmqYeRcCw3sJU_k9jrZIdwOlJCewTEedMmYnToW_TIYSl-l43VIXQ79EwTP8Ov10P2LB8cg-f7Y9_jEtkrf8Ysj_Uy1XRJPnAQW1P37SlX4uWBcaauXw8j5zNaxA7Wrp8Z5/s1600-h/databaseexpand.png&quot; rel=&quot;nofollow&quot; style=&quot;-webkit-transition: 1s; color: #105289; margin: 0px; padding: 0px; text-decoration: none; transition: 1s;&quot; target=&quot;_blank&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLGKirhtpjTrmqYeRcCw3sJU_k9jrZIdwOlJCewTEedMmYnToW_TIYSl-l43VIXQ79EwTP8Ov10P2LB8cg-f7Y9_jEtkrf8Ysj_Uy1XRJPnAQW1P37SlX4uWBcaauXw8j5zNaxA7Wrp8Z5/s320/databaseexpand.png&quot; style=&quot;border-width: 0px; height: 293px; margin: 0px; padding: 0px; width: 319px;&quot; /&gt;&lt;/a&gt;Testஎன்கிற&lt;br /&gt;
  326. இடத்தில் இருக்கும் + Expand ஐ அழுத்தினால் அதில் DatabaseDiagrams,&lt;br /&gt;
  327. Tables, Views, Synonyms, Programmability, Service Broker,Storage,&lt;br /&gt;
  328. Security எனப் பல இருக்கும்.&lt;br /&gt;
  329. &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidFzt3B34jTCj26rj0JrRAPOpdI7chEC0_Rqpo-4KcHHnU8l3gATZv6jFE6txbOIGIqJJxvfpP6_SDRmWdcXMR6d1NV8W4SDykazPzoB9Vxyt9owKqy0dxZ8D9q5oR1z0GxrRacLHiSxec/s1600-h/dbexpa.png&quot; rel=&quot;nofollow&quot; style=&quot;-webkit-transition: 1s; color: #105289; margin: 0px; padding: 0px; text-decoration: none; transition: 1s;&quot; target=&quot;_blank&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidFzt3B34jTCj26rj0JrRAPOpdI7chEC0_Rqpo-4KcHHnU8l3gATZv6jFE6txbOIGIqJJxvfpP6_SDRmWdcXMR6d1NV8W4SDykazPzoB9Vxyt9owKqy0dxZ8D9q5oR1z0GxrRacLHiSxec/s320/dbexpa.png&quot; style=&quot;border-width: 0px; height: 320px; margin: 0px; padding: 0px; width: 251px;&quot; /&gt;&lt;/a&gt;அதில்Table&lt;br /&gt;
  330. ல் வைத்து Right click செய்து New Table ஐத் தேர்ந்தெடுக்கவும்.இதில்&lt;br /&gt;
  331. Column Name, Data Type, Allow Nulls ஆகியவை இருக்கும். உங்கள்Tableன்&lt;br /&gt;
  332. Sturctureக்குத் தகுந்தாற்போல ஒவ்வொரு Column களையும்கொடுக்கவும்.&lt;br /&gt;
  333. Person#, Name, City என மூன்று Columnகள்&lt;br /&gt;
  334. உதாரணத்திற்குக்கொடுத்திருக்கிறேன்.&lt;br /&gt;
  335. &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6g42zSMdYt2MKU2J5dDyzRUKG1uMes8W61etqZzTi9p00phnU7zSI6QhaR3S9qd_gMOBUY_7raUX1PjqK8gp41qQND86OoVbjZUiI8sEg7ZarHz1FKHNMo8liMwf6SbeUUzomVWp6rX3R/s1600-h/structureentry.png&quot; rel=&quot;nofollow&quot; style=&quot;-webkit-transition: 1s; color: #105289; margin: 0px; padding: 0px; text-decoration: none; transition: 1s;&quot; target=&quot;_blank&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6g42zSMdYt2MKU2J5dDyzRUKG1uMes8W61etqZzTi9p00phnU7zSI6QhaR3S9qd_gMOBUY_7raUX1PjqK8gp41qQND86OoVbjZUiI8sEg7ZarHz1FKHNMo8liMwf6SbeUUzomVWp6rX3R/s320/structureentry.png&quot; style=&quot;border-width: 0px; height: 115px; margin: 0px; padding: 0px; width: 320px;&quot; /&gt;&lt;/a&gt;பின் இதை Save செய்வதற்கு, Ctrl + S வழமை போலக் கொடுத்து Table க்காக ஒரு பெயர் சூட்டுங்கள். (MyList எனக் கொடுத்துள்ளேன்)&lt;br /&gt;
  336. &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJsX7l6hSD2_uemtq94ObuxXlYeI9rrg126puG9PpNUTEKxmM9B-re1nJUBoRmjHiLdvi93hLTyvq84xSf1fAmgkHLQpQSVZG9mf_X8lCrw8YUoFlGNpbFNmDPbP93YhG2vzbYVwddvKHw/s1600-h/tablesave.png&quot; rel=&quot;nofollow&quot; style=&quot;-webkit-transition: 1s; color: #105289; margin: 0px; padding: 0px; text-decoration: none; transition: 1s;&quot; target=&quot;_blank&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJsX7l6hSD2_uemtq94ObuxXlYeI9rrg126puG9PpNUTEKxmM9B-re1nJUBoRmjHiLdvi93hLTyvq84xSf1fAmgkHLQpQSVZG9mf_X8lCrw8YUoFlGNpbFNmDPbP93YhG2vzbYVwddvKHw/s320/tablesave.png&quot; style=&quot;border-width: 0px; height: 114px; margin: 0px; padding: 0px; width: 320px;&quot; /&gt;&lt;/a&gt;பிறகு இதை Close செய்யலாம். இப்போது உங்கள் Tableன் Structure ஆனது Save செய்யப்பட்டுவிட்டது.&lt;br /&gt;
  337. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  338. இப்படி உருவாக்கிய Tableல் நமது தகவல்களை ஏற்றுவது எப்படி?&lt;br /&gt;
  339. Tables க்கு அருகில் இருக்கும் + அடையாளத்தைச் சொடுக்கி expand செய்தால், dbo.MyList ஐக் காணலாம்.&lt;br /&gt;
  340. &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgDcz2iQ_A8ffKH2qZ90JH1B651_lKhafI78FL61l2Szd6T69lVCi3jGGrq2h4WuOOsmp0BH8qcjGuigSwZeHuwhVXCAPvm9F1EZ3eIepkGmUD9Wj6pVwF67wZc_In3QdicHbo4Z-lBtB4f/s1600-h/tableexpand.png&quot; rel=&quot;nofollow&quot; style=&quot;-webkit-transition: 1s; color: #105289; margin: 0px; padding: 0px; text-decoration: none; transition: 1s;&quot; target=&quot;_blank&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgDcz2iQ_A8ffKH2qZ90JH1B651_lKhafI78FL61l2Szd6T69lVCi3jGGrq2h4WuOOsmp0BH8qcjGuigSwZeHuwhVXCAPvm9F1EZ3eIepkGmUD9Wj6pVwF67wZc_In3QdicHbo4Z-lBtB4f/s320/tableexpand.png&quot; style=&quot;border-width: 0px; height: 88px; margin: 0px; padding: 0px; width: 214px;&quot; /&gt;&lt;/a&gt;&amp;nbsp;அதில் Right Click செய்து, Open Table ஐத் தேர்ந்தெடுக்கவும்.&lt;br /&gt;
  341. &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjT2qYV9VMC-RgxFzi9toqo9Z3ILNOW-7U7VNhzCDqc_WE0dwA9KEyWAbvcg8PkoaQP-CLgRG_udAlFl4KUWWMIHfd4yAytcf4t0WLxRpvyP4Licpbm3KK4yNkkjfR33bo0FxEBFOA0isJd/s1600-h/opentable.png&quot; rel=&quot;nofollow&quot; style=&quot;-webkit-transition: 1s; color: #105289; margin: 0px; padding: 0px; text-decoration: none; transition: 1s;&quot; target=&quot;_blank&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjT2qYV9VMC-RgxFzi9toqo9Z3ILNOW-7U7VNhzCDqc_WE0dwA9KEyWAbvcg8PkoaQP-CLgRG_udAlFl4KUWWMIHfd4yAytcf4t0WLxRpvyP4Licpbm3KK4yNkkjfR33bo0FxEBFOA0isJd/s320/opentable.png&quot; style=&quot;border-width: 0px; height: 231px; margin: 0px; padding: 0px; width: 211px;&quot; /&gt;&lt;/a&gt;பிறகு அதில் ஒவ்வொரு Row வாகத் தகவல்களை உள்ளீடு செய்யலாம். நான் 5 rowக்களை இதில் ஏற்றிவிட்டேன்.&lt;br /&gt;
  342. &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqDoTBvzxlGxJMhwqXJXwEi5Qa9vsvw_hBQ4zW0Ai4nad5Z7pAqnbqrG9c7aUeFzd-Lzsm7vHX4aYJ-5dzm4OqILf8MywbgXrgwvag9yYqrGvIkIx6BeVAmxVIWBdzA5_mLDMMg81qEKt5/s1600-h/dataentry.png&quot; rel=&quot;nofollow&quot; style=&quot;-webkit-transition: 1s; color: #105289; margin: 0px; padding: 0px; text-decoration: none; transition: 1s;&quot; target=&quot;_blank&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqDoTBvzxlGxJMhwqXJXwEi5Qa9vsvw_hBQ4zW0Ai4nad5Z7pAqnbqrG9c7aUeFzd-Lzsm7vHX4aYJ-5dzm4OqILf8MywbgXrgwvag9yYqrGvIkIx6BeVAmxVIWBdzA5_mLDMMg81qEKt5/s320/dataentry.png&quot; style=&quot;border-width: 0px; height: 56px; margin: 0px; padding: 0px; width: 320px;&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
  343. &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7R85LHJC-Qn7AJBMAgkF0hrOipOiz8RjCxgCl_CApShQak89IJmaJMJsZDh6xIG5qZjNLG1QKSU-OpQi2o8q34k9DNIcBZLO5-GZgV9NPysRwGOUBZWOOmASh_M6qdF3zSVeQkcT9dIO2/s1600-h/rowentry.png&quot; rel=&quot;nofollow&quot; style=&quot;-webkit-transition: 1s; color: #105289; margin: 0px; padding: 0px; text-decoration: none; transition: 1s;&quot; target=&quot;_blank&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7R85LHJC-Qn7AJBMAgkF0hrOipOiz8RjCxgCl_CApShQak89IJmaJMJsZDh6xIG5qZjNLG1QKSU-OpQi2o8q34k9DNIcBZLO5-GZgV9NPysRwGOUBZWOOmASh_M6qdF3zSVeQkcT9dIO2/s320/rowentry.png&quot; style=&quot;border-width: 0px; height: 138px; margin: 0px; padding: 0px; width: 320px;&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
  344. பதிந்தது போதும் என நினைக்கும்போது அந்த tab ல் வலது க்ளிக் செய்து Close அழுத்திவிடலாம்.&lt;br /&gt;
  345. &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicSbD2mH7Le4dkMPsfckxH9l4D3-9eNGfDEOTcgYhCkB1tq5LTJVfhzEaFNF_eszKtAL1pevcjxfNyyV07A-vODVJQkhdzma3VWTbfpKczLsZnQPgVt-Jzc8UD0cAXHrVdAokefXLjb_1M/s1600-h/closetable.png&quot; rel=&quot;nofollow&quot; style=&quot;-webkit-transition: 1s; color: #105289; margin: 0px; padding: 0px; text-decoration: none; transition: 1s;&quot; target=&quot;_blank&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicSbD2mH7Le4dkMPsfckxH9l4D3-9eNGfDEOTcgYhCkB1tq5LTJVfhzEaFNF_eszKtAL1pevcjxfNyyV07A-vODVJQkhdzma3VWTbfpKczLsZnQPgVt-Jzc8UD0cAXHrVdAokefXLjb_1M/s320/closetable.png&quot; style=&quot;border-width: 0px; height: 126px; margin: 0px; padding: 0px; width: 249px;&quot; /&gt;&lt;/a&gt;இதுவரையில்இங்கே&lt;br /&gt;
  346. நாம் GUI எனப்படும் Graphical User Interface வாயிலாக ஒருDatabaseம்,&lt;br /&gt;
  347. அதில் ஒரு Tableம் உருவாக்கி, அதில் புதிய தகவல்களை எப்படிப்பதிவது&lt;br /&gt;
  348. என்றும் கண்டோம்.&lt;/div&gt;
  349. &lt;/div&gt;
  350. &lt;/div&gt;
  351. </content><link rel='replies' type='application/atom+xml' href='http://tamilprogramminng.blogspot.com/feeds/4748888094657262464/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tamilprogramminng.blogspot.com/2013/08/sql-5.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3691376985285892436/posts/default/4748888094657262464'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3691376985285892436/posts/default/4748888094657262464'/><link rel='alternate' type='text/html' href='http://tamilprogramminng.blogspot.com/2013/08/sql-5.html' title=' எளிய தமிழில் SQL - பாகம் 5'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHNn7pZPTegRtXH5L5w9AGcdAAe11vYvDiSR-wPVeb719sTMBnyAhwZg4d3s4G6qKzlHSqyG25Iq8de-4wwqyiKkUCnNC9OEwNmzJUyZQXx9tlYA5ZhBad2_waa1099Q7BWnFQ-FTVhLIL/s72-c/connect.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3691376985285892436.post-4593039310525239392</id><published>2013-08-08T04:29:00.006-07:00</published><updated>2013-08-08T04:42:42.028-07:00</updated><title type='text'>எளிய தமிழில் SQL - பாகம் 4</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
  352. &lt;br /&gt;
  353. &lt;div class=&quot;post row1 post--72438&quot; id=&quot;p72438&quot; style=&quot;background-color: #e5f1f9; border: 1px dashed rgb(3, 114, 190); font-family: SooriyanDotCom; font-size: 12px; line-height: 14px; margin: 20px 0px 4px; padding: 3px; text-shadow: rgb(255, 255, 255) 1px 0px 1px; z-index: 1;&quot;&gt;
  354. &lt;div class=&quot;inner&quot; style=&quot;margin: 0px; padding: 0px;&quot;&gt;
  355. &lt;div class=&quot;postbody&quot; style=&quot;clear: both; color: #141a87; float: left; line-height: 1.48em; margin: 0px; padding: 0px; width: 954.4375px;&quot;&gt;
  356. &lt;div class=&quot;content clearfix&quot; style=&quot;clear: left; font-family: SooriyanDotCom, Sooriyan, Arial, Tahoma; line-height: 1.4em; margin: 0px; min-height: 3em; overflow: hidden; padding: 0px;&quot;&gt;
  357. &lt;div style=&quot;margin: 0px; padding: 0px;&quot;&gt;
  358. &lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;ஒரு Tableன் Structure எப்படி இருக்கும்?&lt;/strong&gt;&lt;br /&gt;
  359. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  360. Column Name, Data Type(Width), Allow Nulls இவைகள் அனைத்தும் அடங்கியது&lt;br /&gt;
  361. ஒரு Table Structure.&lt;br /&gt;
  362. &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKyVfusMUykIU3t3oOSjXn6e-pBdIp42ivv6oNF_GrNduqn0GiiQT6ZDP3it0hWRHe5M4GqrxKJYiNOjEglK5V0tEuNfsOhpHHlODRz_6iXCvCHdrR-prgAh3w-5Fq8Pw7R48x4ttKYrNh/s1600-h/tablestructure.png&quot; rel=&quot;nofollow&quot; style=&quot;-webkit-transition: 1s; color: #105289; margin: 0px; padding: 0px; text-decoration: none; transition: 1s;&quot; target=&quot;_blank&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKyVfusMUykIU3t3oOSjXn6e-pBdIp42ivv6oNF_GrNduqn0GiiQT6ZDP3it0hWRHe5M4GqrxKJYiNOjEglK5V0tEuNfsOhpHHlODRz_6iXCvCHdrR-prgAh3w-5Fq8Pw7R48x4ttKYrNh/s320/tablestructure.png&quot; style=&quot;border-width: 0px; height: 194px; margin: 0px; padding: 0px; width: 320px;&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
  363. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  364. AllowNull&lt;br /&gt;
  365. என்பது tick செய்யப்பட்டிருந்தால், அதன் மதிப்பை உள்ளீடுசெய்யும்போது&lt;br /&gt;
  366. வெறுமனே விட்டுவிடலாம் என்று அர்த்தம். தற்சமயம் அதன்மதிப்பு நமக்குத்&lt;br /&gt;
  367. தெரிந்திருக்கவில்லை. பிறகு சில காலம் கழித்துக் கூடஅதன் மதிப்பை நாம்&lt;br /&gt;
  368. உள்ளிட்டுக் கொள்ளலாம்.&lt;br /&gt;
  369. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  370. Allow Null என்பது tickசெய்யப்படாமல்&lt;br /&gt;
  371. இருந்தால், அந்தக் குறிப்பிட்ட columnன் தகவலைக் கண்டிப்பாகநாம் கொடுத்தே&lt;br /&gt;
  372. தீரவேண்டும். அதன் மதிப்பை உள்ளிடாமல் விட்டுவிட்டால்பிழைச்செய்தி வரும்.&lt;br /&gt;
  373. ஆனால் Identity Columnக்கு மட்டும் ஒரு விதிவிலக்குஉண்டு.&lt;br /&gt;
  374. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  375. முதல் Column ஆகிய AddressID ன் ஆரம்பத்தில் ஒரு சிறிய சாவியின் படம்&lt;br /&gt;
  376. &amp;nbsp;போடப்பட்டுள்ளது. அது இந்த Tableன் primary key ஆகும்.&lt;br /&gt;
  377. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  378. &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgB83QV3sIDZKrBf9HRU5zv_LSTOIpF0J92jZ-VSPNqVtoPCf6kaam8mPXlI8rJjDsxwc_Te8sfUpRKMV6msuQh0ZVudLMz-7IVJiUnILNjuV_8mchyKA9Qm7kiShn_FsKEBZHtPrIxyQWH/s1600-h/primary.png&quot; rel=&quot;nofollow&quot; style=&quot;-webkit-transition: 1s; color: #105289; margin: 0px; padding: 0px; text-decoration: none; transition: 1s;&quot; target=&quot;_blank&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgB83QV3sIDZKrBf9HRU5zv_LSTOIpF0J92jZ-VSPNqVtoPCf6kaam8mPXlI8rJjDsxwc_Te8sfUpRKMV6msuQh0ZVudLMz-7IVJiUnILNjuV_8mchyKA9Qm7kiShn_FsKEBZHtPrIxyQWH/s320/primary.png&quot; style=&quot;border-width: 0px; height: 157px; margin: 0px; padding: 0px; width: 320px;&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
  379. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  380. Primarykey&lt;br /&gt;
  381. ஆனது ஒரு குறிப்பிட்ட Row வை தனித்து அடையாளம் கண்டுகொள்ள உதவும்.மேலும்&lt;br /&gt;
  382. AddressID ஆனது Identity Column ஆகவும் குறிப்பிடப்பட்டுள்ளதால்,இதன்&lt;br /&gt;
  383. மதிப்பை நாம் நேரடியாக உள்ளிட வேண்டிய அவசியமில்லை.&lt;br /&gt;
  384. Databaseல்தானியங்கியாக அடுத்தடுத்த எண்களை இந்த AddressIDல் Input&lt;br /&gt;
  385. செய்துவிடும்.&lt;br /&gt;
  386. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  387. மேலேஉள்ள Table Structureல் AddressLine2 க்கு&lt;br /&gt;
  388. மட்டும் Allow Nulls ஆனது tickசெய்யப்பட்டு இருக்கிறது. ஆகவே&lt;br /&gt;
  389. AddressLine2க்கு உரிய தகவல் நம்மிடம்தற்சமயம் இல்லையென்றால் அதை நாம்&lt;br /&gt;
  390. உள்ளீடு செய்யாமல் அப்படியே விட்டுவிட்டுஅடுத்த Columnக்கு உரிய தகவலை&lt;br /&gt;
  391. உள்ளீடு செய்யலாம். பிறகு எப்போதுவேண்டுமானாலும் AddressLine2க்கு உரிய&lt;br /&gt;
  392. Dataவைக் கொடுக்கலாம். பிழைச்செய்திஎதுவும் வராது.&lt;br /&gt;
  393. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  394. rowguid என்பதற்கு நேராக uniqueidentifier என Data Type இருக்கிறது.&lt;br /&gt;
  395. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  396. &lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;அது என்ன Unique Identifier?&lt;/strong&gt;&lt;br /&gt;
  397. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  398. 8DD27D89-6AE7-4316-B3B8-0CCEF0924F60 இது போன்ற ஒரு hexadecimal மதிப்பு.&lt;br /&gt;
  399. இதுஒவ்வொரு&lt;br /&gt;
  400. முறையும் வேறு வேறு மதிப்புகளைக் கொடுக்கும். கணினிக்குக்&lt;br /&gt;
  401. கணினிவித்தியாசமான மதிப்பையும், ஒரே கணினியில் ஒவ்வொரு முறையும்&lt;br /&gt;
  402. இயக்கும்போதுவேறு வேறு மதிப்புகளைக் கொடுக்கும்.&lt;br /&gt;
  403. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  404. நாம் இந்த Unique&lt;br /&gt;
  405. IdentifierData Type ஐக் கொண்ட Column க்கு எந்த தகவலையும் உள்ளீடு&lt;br /&gt;
  406. செய்யவேண்டாம்.இது தானியங்கியாக கணினியே உருவாக்கும் ஒரு மதிப்பாகும்.&lt;br /&gt;
  407. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  408. ஒவ்வொரு row வையும் பிரித்துக் காட்ட UniqueIdentifierஐப் பயன்படுத்தலாம்.&lt;br /&gt;
  409. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  410. உதாரணம் :&lt;br /&gt;
  411. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  412. declare @a uniqueidentifier&lt;br /&gt;
  413. set @a = newid()&lt;br /&gt;
  414. print @a&lt;br /&gt;
  415. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  416. இதன் விடை.&lt;br /&gt;
  417. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  418. F94771ED-8405-4C30-893E-0325FA0A394C&lt;br /&gt;
  419. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  420. மேலே கொடுத்துள்ள ஒரு சிறிய நிரல் ஆனது T-SQL programming ல் எழுதப்பட்டது.&lt;br /&gt;
  421. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  422. T-SQL என்றால் Transact SQL என்ற விரிவைக் கொண்டது. இது ஒரு கணினி மொழி.&lt;br /&gt;
  423. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  424. மேலே @a என்பது ஒரு variable. இதன் மதிப்பு ஒவ்வொரு முறையும் மாறிக்கொண்டே இருக்கும்.&lt;br /&gt;
  425. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  426. set@a&lt;br /&gt;
  427. = newid() ---&amp;gt; என்றால் ஒரு கணினியால் அந்த நேரத்தில்உருவாக்கப்பட்ட&lt;br /&gt;
  428. ஒரு புதிய hexadecimal based மதிப்பை அந்த variable @a ல்பதிகிறோம்.&lt;br /&gt;
  429. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  430. print&lt;br /&gt;
  431. @a --&amp;gt; திரையில் @a என்பதன் மதிப்பைக் காண்பி.உடனே திரையில் தெரியும்&lt;br /&gt;
  432. மதிப்பானது F94771ED-8405-4C30-893E-0325FA0A394Cஇப்படி இருக்கலாம்.&lt;br /&gt;
  433. எனக்கு இந்த மதிப்பு வந்தது. உங்களுக்கு வேறு மதிப்புவரும்.&lt;br /&gt;
  434. ஒவ்வொருவருக்கும் வேறுவேறு மதிப்புகளை இந்த நிரல் உருவாக்கித்தரும்.&lt;br /&gt;
  435. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  436. AddressLine1, AddressLine2, City, PostalCode ஆகிய Columnகளின்&lt;br /&gt;
  437. &amp;nbsp;DataType ஆனது nVarchar வகையைச் சேர்ந்தது.&lt;br /&gt;
  438. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  439. அதாவது இந்த Columnகளில் நாம் unicode வகையைச் சேர்ந்த எண்கள்,&lt;br /&gt;
  440. எழுத்துக்கள், பிற அடையாளங்கள் ஆகியவற்றை உள்ளிடலாம்.&lt;br /&gt;
  441. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  442. AddressLine1க்காக&lt;br /&gt;
  443. நாம் அதிகபட்சமாக 60 எழுத்துக்களை ஒதுக்கியுள்ளோம். ஆனால் நாம்&lt;br /&gt;
  444. 20எழுத்துக்களை மட்டுமே உள்ளிட்டால், மீதியுள்ள 40 காலியிடங்கள்&lt;br /&gt;
  445. trimசெய்யப்பட்டு 20 எழுத்துக்கள் மாத்திரமே table ல் பதிவாகும்.&lt;br /&gt;
  446. இதுவேvarcharன் சிறப்பு.&lt;br /&gt;
  447. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  448. இதுவே char என இருந்தால் ஒட்டுமொத்தமாக நாம் எவ்வளவு&lt;br /&gt;
  449. &amp;nbsp;எழுத்துக்களை ஏற்கனவே ஒதுக்கியுள்ளோமோ அத்தனை இடங்களுமே வீணடிக்கப்பட்டுவிடும்.&lt;br /&gt;
  450. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  451. AddressID,StateProvinceID&lt;br /&gt;
  452. இவையிரண்டின் DataType ஆனது int வகையைச் சேர்ந்தது.அதனால் இந்த&lt;br /&gt;
  453. இரண்டுக்கும் நாம் எண்களை உள்ளீடு செய்யலாம். ஆனால் AddressIDஆனது&lt;br /&gt;
  454. Identity Column வகையைச் சேர்ந்ததால் (அது auto incrementவகைப்பட்டது)&lt;br /&gt;
  455. அதற்குத் தகவலை உள்ளிட வேண்டாம். StateProviceIDக்கு மட்டும்அதற்குரிய&lt;br /&gt;
  456. எண்ணைப் பதிவிட்டால் போதும்.&lt;br /&gt;
  457. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  458. Modified Date என்பதில்அதற்குரிய&lt;br /&gt;
  459. DataType ஆனது DateTime ஆகக் குறிப்பிடப்பட்டுள்ளது.அதனால் அந்தModified&lt;br /&gt;
  460. Date க்கு உரிய columnன் மதிப்பில் ஒரு குறிப்பிட்ட தேதியைஉள்ளிடவேண்டும்.&lt;br /&gt;
  461. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  462. ஒரு சிறிய T-SQL நிரல்.&lt;br /&gt;
  463. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  464. declare @a datetime&lt;br /&gt;
  465. set @a = getdate()&lt;br /&gt;
  466. print @a&lt;br /&gt;
  467. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  468. @a என்பது datetime எனப்படும் DataTypeஐச் சேர்ந்தது.&lt;br /&gt;
  469. getdate() எனப்படும் ஒரு function நடப்புத் தேதியையும், நேரத்தையும் தரவல்லது.&lt;br /&gt;
  470. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  471. print @a என்றவுடன் கிடைத்த விடை.&lt;br /&gt;
  472. Jan 26 2009 11:00AM&lt;br /&gt;
  473. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  474. இங்கேஒரு&lt;br /&gt;
  475. சில இடங்களில் புதியவர்களுக்காக சில குறிப்பிட்ட பதங்களை&lt;br /&gt;
  476. ஒவ்வொருமுறையும்&lt;br /&gt;
  477. விளக்கியிருப்பேன். Primary key, Identity Column போன்றவற்றைமீண்டும்&lt;br /&gt;
  478. சுருக்கமாகக் கூறியிருப்பேன். ஒரு புரிதலுக்காகத்தான் அவ்வாறுமீண்டும்&lt;br /&gt;
  479. கூறியிருக்கிறேனே தவிர வேறெதுவும் இல்லை. இதற்கு முன்னர்வெளியிட்ட 3&lt;br /&gt;
  480. பதிவுகளில் அவற்றை விளக்கியிருந்தாலும், அதே பதங்களை&lt;br /&gt;
  481. &amp;nbsp;இங்கே4வது பதிவுகளில்&lt;br /&gt;
  482. பயன்படுத்தும்போது புரியாமல் போகிவிடக்கூடாது&lt;br /&gt;
  483. மீண்டும்குறுவிளக்கமாகக்&lt;br /&gt;
  484. குறிப்பிட்டிருக்கிறேன்.&lt;/div&gt;
  485. &lt;/div&gt;
  486. &lt;/div&gt;
  487. &lt;/div&gt;
  488. &lt;/div&gt;
  489. &lt;/div&gt;
  490. </content><link rel='replies' type='application/atom+xml' href='http://tamilprogramminng.blogspot.com/feeds/4593039310525239392/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tamilprogramminng.blogspot.com/2013/08/sql-4.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3691376985285892436/posts/default/4593039310525239392'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3691376985285892436/posts/default/4593039310525239392'/><link rel='alternate' type='text/html' href='http://tamilprogramminng.blogspot.com/2013/08/sql-4.html' title='எளிய தமிழில் SQL - பாகம் 4'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKyVfusMUykIU3t3oOSjXn6e-pBdIp42ivv6oNF_GrNduqn0GiiQT6ZDP3it0hWRHe5M4GqrxKJYiNOjEglK5V0tEuNfsOhpHHlODRz_6iXCvCHdrR-prgAh3w-5Fq8Pw7R48x4ttKYrNh/s72-c/tablestructure.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3691376985285892436.post-6950193157197727775</id><published>2013-08-08T04:29:00.000-07:00</published><updated>2013-08-08T04:45:07.707-07:00</updated><title type='text'>எளிய தமிழில் SQL - பாகம் 3</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
  491. &lt;strong style=&quot;color: #141a87; font-family: SooriyanDotCom, Sooriyan, Arial, Tahoma; line-height: 1.4em; margin: 0px; padding: 0px;&quot;&gt;Identity Column என்றால் என்ன?&lt;/strong&gt;&lt;br /&gt;
  492. &lt;div class=&quot;post row2 post--70066&quot; id=&quot;p70066&quot; style=&quot;background-color: #e5f1f9; border: 1px dashed rgb(3, 114, 190); font-family: SooriyanDotCom; font-size: 12px; line-height: 14px; margin: 20px 0px 4px; padding: 3px; text-shadow: rgb(255, 255, 255) 1px 0px 1px; z-index: 1;&quot;&gt;
  493. &lt;div class=&quot;inner&quot; style=&quot;margin: 0px; padding: 0px;&quot;&gt;
  494. &lt;div class=&quot;postbody&quot; style=&quot;clear: both; color: #141a87; float: left; line-height: 1.48em; margin: 0px; padding: 0px; width: 954.4375px;&quot;&gt;
  495. &lt;div class=&quot;content clearfix&quot; style=&quot;clear: left; font-family: SooriyanDotCom, Sooriyan, Arial, Tahoma; line-height: 1.4em; margin: 0px; min-height: 3em; overflow: hidden; padding: 0px;&quot;&gt;
  496. &lt;div style=&quot;margin: 0px; padding: 0px;&quot;&gt;
  497. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  498. &lt;div align=&quot;justify&quot; style=&quot;margin: 0px; padding: 0px;&quot;&gt;
  499. ஒருகுறிப்பிட்ட&lt;br /&gt;
  500. Column ன் மதிப்பானது, அதற்குரிய மதிப்பை நாம் கொடுக்காமலேயே,அதுவாகவே&lt;br /&gt;
  501. தானியங்கித்தனமாக உயர்ந்துகொண்டு வருவதை Auto Increment எனலாம்.இப்படி ஒரு&lt;br /&gt;
  502. Column ன் மதிப்பை தானாக உயர்த்துவதால், இந்த Column க்குIdentity Column&lt;br /&gt;
  503. என்போம்.&lt;/div&gt;
  504. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  505. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  506. &lt;div align=&quot;justify&quot; style=&quot;margin: 0px; padding: 0px;&quot;&gt;
  507. இந்த&lt;br /&gt;
  508. Column ன் Data Type ஆனது numericஆக இருத்தல் வேண்டும். இதன் உயர்வு&lt;br /&gt;
  509. விகிதம் (Identity Increment), எந்தஎண்ணிக்கையில் இருந்து&lt;br /&gt;
  510. ஆரம்பிக்கவேண்டும் (Identity Seed) போன்றவற்றை நாமேதீர்மாணிக்கலாம்.&lt;/div&gt;
  511. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  512. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  513. &lt;div align=&quot;justify&quot; style=&quot;margin: 0px; padding: 0px;&quot;&gt;
  514. ஒவ்வொரு&lt;br /&gt;
  515. Rowக்கும், இந்த குறிப்பிட்ட IdentityColumn ன் மதிப்பு அதுவாகவே&lt;br /&gt;
  516. உயர்ந்துகொண்டிருக்கும். அடுத்தடுத்தRowக்களின் தகவல்களை உள்ளீடு&lt;br /&gt;
  517. செய்யும்போது, இந்த Identity Columnன்மதிப்பை நாம் உள்ளீடு செய்யத்&lt;br /&gt;
  518. தேவையில்லை.&lt;/div&gt;
  519. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  520. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  521. Primary key என்பது என்னவென்று இதற்கு முந்தைய பதிவில் பார்த்தோம்.&lt;br /&gt;
  522. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  523. &lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;Foreign Key என்றால் என்ன?&lt;/strong&gt;&lt;br /&gt;
  524. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  525. &lt;div align=&quot;justify&quot; style=&quot;margin: 0px; padding: 0px;&quot;&gt;
  526. Tableஎன்றால்&lt;br /&gt;
  527. என்னவென்று நமக்குத் தெரியும். அதில் பல தகவல்களை ஒவ்வொரு Rowவாகஉள்ளீடு&lt;br /&gt;
  528. செய்து வைத்திருப்போம். ஒன்றுக்கு மேற்பட்ட Tableகளில் இருக்கும்தகவல்களை&lt;br /&gt;
  529. ஒரே திரையில் காண்பதற்கு உதவுவதே Foreign key ஆகும்.&lt;/div&gt;
  530. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  531. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  532. ஒரு குறிப்பிட்ட Table ல் ஒவ்வொரு Rowவையும் பிரித்துத் தனிமைப்படுத்துவதற்கு,&lt;br /&gt;
  533. அடையாளம் காண்பதற்கு Primary key உதவுகிறது.&lt;br /&gt;
  534. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  535. இந்தக் கட்டுமானத்தை Master - Detail என்று கூறுவோம்.&lt;br /&gt;
  536. &lt;div align=&quot;justify&quot; style=&quot;margin: 0px; padding: 0px;&quot;&gt;
  537. MasterTableல்&lt;br /&gt;
  538. ஒரு குறிப்பிட்ட Column ஆனது Primary key ஆக இருக்கும். (இதுமுதலாவது&lt;br /&gt;
  539. Table). Primary key ன் மதிப்பு ஒவ்வொரு Rowக்கும் மாறிக்கொண்டேஇருக்கும்.&lt;br /&gt;
  540. உதாரணமாக Person#. ஒவ்வொரு நபருக்கும் ஒரு தனிப்பட்ட எண்ணைக்கொண்டு&lt;br /&gt;
  541. வித்தியாசப்படுத்துவதற்கு Primary key உதவும்.&lt;/div&gt;
  542. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  543. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  544. Master&lt;br /&gt;
  545. Tableல் ஒரு முறை மட்டும் வந்த Person# ஆனது, Detail Table ல் பலமுறை&lt;br /&gt;
  546. திரும்பத்திரும்ப வரும். இந்த இரண்டு எண்ணும் ஒரே எண்ணாக இருக்கும்.&lt;br /&gt;
  547. இரண்டின் Data Type ம் ஒன்றாகவே இருக்கும். இரண்டும் ஒன்றுக்கொன்று&lt;br /&gt;
  548. தொடர்புடையதாக இருக்கும்.&lt;br /&gt;
  549. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  550. இந்த Primary - Foreign key மூலம் இரண்டு Tableகளின் மதிப்புகளை&lt;br /&gt;
  551. ஒரே திரையில் காணலாம்.&lt;br /&gt;
  552. இதை join என்போம்.&lt;br /&gt;
  553. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  554. இந்த இரண்டு keyகளின் Columnல் ஏற்றப்பட்ட மதிப்புகளை&lt;br /&gt;
  555. &amp;nbsp;அடையாளப்படுத்தியே Master-Detail Table மையப்படுத்தப்படுகிறது.&lt;br /&gt;
  556. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  557. &lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;Unique என்றால் என்ன?&lt;/strong&gt;&lt;br /&gt;
  558. ஒரு குறிப்பிட்ட Columnல் உள்ள மதிப்பு ஒவ்வொரு Rowக்கும் வித்தியாசமானதாக&lt;br /&gt;
  559. இருப்பதை Unique எனலாம்.&lt;br /&gt;
  560. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  561. Person#எனப்படுவதை&lt;br /&gt;
  562. Unique Column எனலாம். ஒவ்வொரு நபரின் பெயரும் வித்தியாசமானதாகஇருக்கத்&lt;br /&gt;
  563. தேவையில்லை (காரணம் : பெயர்ப் பற்றாக்குறை). ஆனால் ஒவ்வொருநபருக்கும் நாம்&lt;br /&gt;
  564. அளிக்கும் குறிப்பிட்ட எண் (Person#) ஆனது Unique ஆகும்.&lt;br /&gt;
  565. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  566. ஆகவேPrimary&lt;br /&gt;
  567. key ஆனது Unique தான். ஆனால் Primary keyஆனது NULL ஆக இருக்கவேமுடியாது.&lt;br /&gt;
  568. Unique Column ஆனது ஒரே ஒருமுறை மட்டும், NULL மதிப்பைஏற்றுக்கொள்ளும்.&lt;br /&gt;
  569. இதுவே இவை இரண்டுக்கும் உள்ள ஒரே வித்தியாசம்.&lt;br /&gt;
  570. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  571. NULL என்பது எந்த மதிப்பும் இல்லாதது. அதன் மதிப்பு பூஜ்யமோ / எதோ&lt;br /&gt;
  572. ஒரு எழுத்தோ / எழுத்துத் தொகுப்போ இல்லை. அது மதிப்பே இல்லாதது.&lt;br /&gt;
  573. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  574. Primary key ஆனது NULL ஐ ஏற்றுக்கொள்ளாது. ஆனால் Unique Column ஆனது&lt;br /&gt;
  575. &amp;nbsp;ஒரே ஒருமுறை மட்டும் NULLஐ ஏற்றுக்கொள்ளூம்.&lt;br /&gt;
  576. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  577. &lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;DataType களின் வகைகள் யாவை?&lt;/strong&gt;&lt;br /&gt;
  578. SQL Server 2005ல் நாம் பயன்படுத்தும் Data Typesகளின் வகைகள் கீழே:&lt;br /&gt;
  579. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  580. user-defined data types (highest)&lt;br /&gt;
  581. sql_variant&lt;br /&gt;
  582. xml&lt;br /&gt;
  583. datetime&lt;br /&gt;
  584. smalldatetime&lt;br /&gt;
  585. float&lt;br /&gt;
  586. real&lt;br /&gt;
  587. decimal&lt;br /&gt;
  588. money&lt;br /&gt;
  589. smallmoney&lt;br /&gt;
  590. bigint&lt;br /&gt;
  591. int&lt;br /&gt;
  592. smallint&lt;br /&gt;
  593. tinyint&lt;br /&gt;
  594. bit&lt;br /&gt;
  595. ntext&lt;br /&gt;
  596. text&lt;br /&gt;
  597. image&lt;br /&gt;
  598. timestamp&lt;br /&gt;
  599. uniqueidentifier&lt;br /&gt;
  600. nvarchar&lt;br /&gt;
  601. nchar&lt;br /&gt;
  602. varchar&lt;br /&gt;
  603. char&lt;br /&gt;
  604. varbinary&lt;br /&gt;
  605. binary (lowest)&lt;br /&gt;
  606. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  607. DataTypes&lt;br /&gt;
  608. என்பது, ஒவ்வொரு Columnலும் நாம் உள்ளீடு செய்யப்போகும் தகவலின்&lt;br /&gt;
  609. வகையைக்&amp;nbsp;&lt;span style=&quot;line-height: 1.4em;&quot;&gt;குறிக்கிறது.எண், எழுத்து, தேதி - போன்ற Data Type ஐ நாம்&lt;/span&gt;&lt;br /&gt;
  610. அதிகம்பயன்படுத்துவோம்.&lt;br /&gt;
  611. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  612. &lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;Character க்கும் Variable Characterக்கும் என்ன வித்தியாசம்?&lt;/strong&gt;&lt;br /&gt;
  613. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  614. NAMECHARACTER(50)&lt;br /&gt;
  615. ---&amp;gt; இது ஒரு Column எனக் கொண்டால், இதில் Field nameஆனது NAME ஆகும்.&lt;br /&gt;
  616. இதில் நாம் உள்ளீடு செய்யவிருக்கிற தகவலின் வகைcharacter எனப்படும்&lt;br /&gt;
  617. DataType ஐச் சார்ந்தது. அதில் நாம் அதிகபட்சமாக 50தனித்தனி எழுத்துகளை&lt;br /&gt;
  618. (இடைவெளி Space) ஐயும் சேர்த்து உள்ளிடலாம்.&lt;br /&gt;
  619. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  620. உதாரணமாக&lt;br /&gt;
  621. NAME=&lt;br /&gt;
  622. &quot;Raja&quot; எனக் கொடுத்தால், இதில் 4 எழுத்துக்களை உள்ளிட்டு&lt;br /&gt;
  623. இருக்கிறோம்.ஆனால் அதிகபட்சமாக நாம் 50 எழுத்துக்களை உள்ளிட&lt;br /&gt;
  624. அனுமதிக்கிறது.அடைப்புக்குறிக்குள் இருக்கும் (50) என்பது இதைக்&lt;br /&gt;
  625. குறிக்கிறது.&lt;br /&gt;
  626. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  627. நாம்கொடுத்துள்ள&lt;br /&gt;
  628. Rajaவில் 4 எழுத்துக்கள் மட்டுமே உள்ளன. ஆனால் மீதியுள்ள&lt;br /&gt;
  629. &amp;nbsp;46எழுத்துக்களின்&lt;br /&gt;
  630. மதிப்பை நாம் உள்ளீடு செய்யாமல் விட்டுவிட்டோம். ஆனால்ஒட்டுமொத்த 50&lt;br /&gt;
  631. எழுத்துக்களுமே வன்வட்டு (hard disk) ல்பதிவாகும்.மீதியுள்ள 46&lt;br /&gt;
  632. எழுத்துக்களுக்கு Space மூலம் நிரப்பப்பட்டு அதன்ஒட்டுமொத்த 50&lt;br /&gt;
  633. மதிப்புகளும் வீணாக்கப்பட்டுவிடும்.&lt;br /&gt;
  634. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  635. ஆனால்&lt;br /&gt;
  636. variablecharacter என்பதில், Babu என உள்ளிட்டால் 4 எழுத்துக்கள் மட்டுமே&lt;br /&gt;
  637. கணக்கில்எடுத்துக்கொள்ளப்படும். மீதியுள்ள 46 எழுத்துக்களில் இருக்கும்&lt;br /&gt;
  638. Spaceகணக்கில் எடுத்துக்கொள்ளப்படாமல் அவற்றின் Space&lt;br /&gt;
  639. எல்லாம்நிராகரிக்கப்பட்டு 4 எழுத்துக்கள் மாத்திரமே hard disk ல்&lt;br /&gt;
  640. எழுதப்படும்.இதனால் நம் நினைவகம் வீணாவது தவிர்க்கப்படும்.&lt;br /&gt;
  641. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  642. &lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;UniCode எழுத்துக்களைப் பதிவு செய்வதற்கு எந்த Data Types ஐப்&lt;/strong&gt;&lt;br /&gt;
  643. &lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;பயன்படுத்துவது?&lt;/strong&gt;&lt;br /&gt;
  644. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  645. பெரும்பாலும் ஆங்கிலத்தில் உள்ள தகவல்களை character, varchar&lt;br /&gt;
  646. முதலிய Data Type மூலம் உள்ளீடு செய்யலாம்.&lt;br /&gt;
  647. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  648. ஆனால் ஆங்கிலம் அல்லாத பிற மொழிகளான தமிழ், மலையாள&lt;br /&gt;
  649. &amp;nbsp;மொழிகளை உள்ளீடு செய்ய நாம் nvarchar, nchar போன்ற Data Type ஐப்&lt;br /&gt;
  650. &amp;nbsp;பயன்படுத்தலாம்.&lt;br /&gt;
  651. &lt;br /&gt;&lt;/div&gt;
  652. &lt;/div&gt;
  653. &lt;/div&gt;
  654. &lt;/div&gt;
  655. &lt;/div&gt;
  656. &lt;/div&gt;
  657. </content><link rel='replies' type='application/atom+xml' href='http://tamilprogramminng.blogspot.com/feeds/6950193157197727775/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tamilprogramminng.blogspot.com/2013/08/sql-3.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3691376985285892436/posts/default/6950193157197727775'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3691376985285892436/posts/default/6950193157197727775'/><link rel='alternate' type='text/html' href='http://tamilprogramminng.blogspot.com/2013/08/sql-3.html' title='எளிய தமிழில் SQL - பாகம் 3'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3691376985285892436.post-5409029595449233469</id><published>2013-08-08T04:22:00.001-07:00</published><updated>2013-08-08T04:46:21.711-07:00</updated><title type='text'> எளிய தமிழில் SQL - பாகம் 2</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
  658. &lt;br /&gt;
  659. &lt;div class=&quot;post row2 post--68577&quot; id=&quot;p68577&quot; style=&quot;background-color: #e5f1f9; border: 1px dashed rgb(3, 114, 190); font-family: SooriyanDotCom; font-size: 12px; line-height: 14px; margin: 20px 0px 4px; padding: 3px; text-shadow: rgb(255, 255, 255) 1px 0px 1px; z-index: 1;&quot;&gt;
  660. &lt;div class=&quot;inner&quot; style=&quot;margin: 0px; padding: 0px;&quot;&gt;
  661. &lt;div class=&quot;postbody&quot; style=&quot;clear: both; color: #141a87; float: left; line-height: 1.48em; margin: 0px; padding: 0px; width: 954.4375px;&quot;&gt;
  662. &lt;div class=&quot;content clearfix&quot; style=&quot;clear: left; font-family: SooriyanDotCom, Sooriyan, Arial, Tahoma; line-height: 1.4em; margin: 0px; min-height: 3em; overflow: hidden; padding: 0px;&quot;&gt;
  663. &lt;div style=&quot;margin: 0px; padding: 0px;&quot;&gt;
  664. &lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;RDBMS என்பது என்ன?&lt;/strong&gt;&lt;br /&gt;
  665. RDBMS என்பதன் விரிவு : Relational Database Management System.&lt;br /&gt;
  666. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  667. SQL ஐப் பயன்படுத்தும் நவீன மென்பொருட்கள் சில :&lt;br /&gt;
  668. MS SQL Server, IBM DB2, Oracle, MySQL, and Microsoft Access.&lt;br /&gt;
  669. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  670. &lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;Table என்பது என்ன?&lt;/strong&gt;&lt;br /&gt;
  671. Database ல் தகவல்களை எங்கே பதிவு செய்திருக்கிறோமோ அந்த அமைப்பு Table எனப்படும்.&lt;br /&gt;
  672. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  673. ஒன்றுக்கு ஒன்று தொடர்புடைய தகவல்களின் தொகுப்பு Table.&lt;br /&gt;
  674. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  675. Table ஆனது எந்தவிதமான கட்டமைப்பில் அமைந்திருக்கும்?.&lt;br /&gt;
  676. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  677. ஒரு Table ல் பல Column / Field இருக்கும். பல Column களின் தொகுப்பே Table.&lt;br /&gt;
  678. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  679. ஒவ்வொருColumn&lt;br /&gt;
  680. மும் ஒரு குறிப்பிட்ட வகையான தகவலைக் கையகப்படுத்தி இருக்கும்.ஆகவே&lt;br /&gt;
  681. ஒவ்வொரு Columnம் அதற்குரிய Data Type ஐக் கொண்டேஅனுசரிக்கப்படுகிறது.&lt;br /&gt;
  682. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  683. ஒரு Databaseல் நிறைய Tableகள் இருக்கும். பல்வேறு Tableகளின் தொகுப்பை Database எனலாம்.&lt;br /&gt;
  684. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  685. &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5lTwrEf3d_VbCDf2s0rovBbh0KFGZj1B_fH-5XL02k7EduvT9EmA06MBN4DJvzC-HhdF3z-Qp-YNhuRP6ZOUhmPWHUZf_McvahtXnR69r3zl671kSkqKdlR12YGXfcfvNYY2dSWPr4O8/s1600-h/table.jpg&quot; rel=&quot;nofollow&quot; style=&quot;-webkit-transition: 1s; color: #105289; margin: 0px; padding: 0px; text-decoration: none; transition: 1s;&quot; target=&quot;_blank&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5lTwrEf3d_VbCDf2s0rovBbh0KFGZj1B_fH-5XL02k7EduvT9EmA06MBN4DJvzC-HhdF3z-Qp-YNhuRP6ZOUhmPWHUZf_McvahtXnR69r3zl671kSkqKdlR12YGXfcfvNYY2dSWPr4O8/s320/table.jpg&quot; style=&quot;border-width: 0px; margin: 0px; padding: 0px;&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
  686. மேலே ஒரு Tableன் மாதிரி&lt;br /&gt;
  687. வடிவத்தைக் கொடுத்துள்ளேன். (படத்தின் மேல் சொடுக்கினால் பெரிதாகப் பார்க்கலாம்).&lt;br /&gt;
  688. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  689. இதில் Person#,LastName,FirstName,Address,City ஆகியவற்றை Column/Field எனலாம்.&lt;br /&gt;
  690. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  691. Person# என்பது எண்களால் குறிப்பிடப்படுகிறது. இதன் Data Type ஆனது numeric.&lt;br /&gt;
  692. LastName,FirstName,City ஆகியவை எழுத்தால் குறிப்பிடப்படுவதால்&lt;br /&gt;
  693. இவற்றின் Data Type ஆனது character, variable character ஆகும்.&lt;br /&gt;
  694. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  695. Addressஎன்கிற&lt;br /&gt;
  696. Columnல் எண்ணாலும், எழுத்தாலும் குறிப்பிடப்பட்டாலும் இதுcharacter&lt;br /&gt;
  697. அல்லது variable character என்கிற வகைக்குள்ளேயே வைத்து விடலாம்.&lt;br /&gt;
  698. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  699. PinCodeஎன்று&lt;br /&gt;
  700. ஒரு column இருந்தால் அதையும் Character வகைக்குள்ளே&lt;br /&gt;
  701. வைத்துவிடலாம்.PinCode பயன்படுத்தி நாம் எந்தவிதமான&lt;br /&gt;
  702. கூட்டல்,கழித்தல்,வகுத்தல்,பெருக்கல்முதலிய கணக்கீடுகளைச்&lt;br /&gt;
  703. செய்யப்போவதில்லை. அதனால் அதை numeric வகைக்குள்வைப்பதற்குப் பதிலாக&lt;br /&gt;
  704. character வகைக்குள்ளேயே வைத்துவிடலாம்.&lt;br /&gt;
  705. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  706. &lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;ஒரு Table ல் Row அல்லது Tuple என்றால் என்ன?&lt;/strong&gt;&lt;br /&gt;
  707. மேலே உள்ள Table ல் மொத்தம் 3 row க்கள் இருக்கின்றன.&lt;br /&gt;
  708. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  709. முதலில் இருப்பது தலைப்பாக இருப்பதால் அதை விடுத்து, அதன்&lt;br /&gt;
  710. கீழ் உள்ள 3 row மட்டுமே கருத்தில் எடுத்துக்கொள்ளப்படுகின்றன.&lt;br /&gt;
  711. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  712. Row என்பது Columnகளின் தொகுப்பு. ஒன்றுக்கொன்று தொடர்புடைய&lt;br /&gt;
  713. தகவல்களை ஒரு Row ல் எழுதி வைப்பது வழக்கம்.&lt;br /&gt;
  714. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  715. உதாரணமாக : 3,Karthik,The Hero,Space, Erode : இவை அனைத்தும்&lt;br /&gt;
  716. &amp;nbsp;ஒரு குறிப்பிட்ட நபரின் தகவல்களே. ஒன்றுக்கு ஒன்று தொடர்புடைய தகவல்கள்.&lt;br /&gt;
  717. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  718. 3 என்பது நபரின் எண்&lt;br /&gt;
  719. Karthik : First Name&lt;br /&gt;
  720. The Hero : Last Name&lt;br /&gt;
  721. Space : Address&lt;br /&gt;
  722. Erode : City&lt;br /&gt;
  723. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  724. இந்தRow&lt;br /&gt;
  725. ல் Address பகுதி மட்டும் Space விட்டுவிட்டோம். அதாவது ஏதேனும்Columnல்&lt;br /&gt;
  726. நிரப்பப்பட வேண்டிய தகவல் தற்சமயத்துக்குத் தெரியவில்லையெனில்அதை&lt;br /&gt;
  727. நிரப்பாமல் விட்டுவிடலாம். பிறகு நிரப்பிக்கொள்ளலாம்.&lt;br /&gt;
  728. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  729. Karthikஎன்பவரின்&lt;br /&gt;
  730. Address தற்சமயம் நமக்குத்தெரிந்திருக்கவில்லை. அதனால் அதைஅப்படியே&lt;br /&gt;
  731. நிரப்பாமல் விட்டுவிட்டு, அடுத்த Field ஆகிய City ல் Erode&lt;br /&gt;
  732. எனஎழுதிவிட்டோம்.&lt;br /&gt;
  733. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  734. இவ்வாறு ஒரு குறிப்பிட்ட Columnல்&lt;br /&gt;
  735. நிரப்பப்படவேண்டிய தகவலானது தற்சமயம் நிரப்பப்பட அவசியம்&lt;br /&gt;
  736. இல்லை என்பதை&lt;br /&gt;
  737. Allow Nullஎன்பதே தீர்மாணிக்கும்.&lt;br /&gt;
  738. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  739. A = 0, ----&amp;gt; இது எண் வகையைச் சேர்ந்தது (numeric)&lt;br /&gt;
  740. B = &quot;Karthik&quot; ----&amp;gt; இது எழுத்து வகையைச் சேர்ந்தது (character)&lt;br /&gt;
  741. C = NULL ----&amp;gt; தகவல் தற்சமயம் கைவசம் இல்லை (NULL)&lt;br /&gt;
  742. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  743. &lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;NULL என்பதன் அர்த்தம்&lt;/strong&gt;யாதெனில்,&lt;br /&gt;
  744. தற்போது அந்தக் குறிப்பிட்ட தகவலின் மதிப்பு எதுவும் இல்லை. அது&lt;br /&gt;
  745. பூஜ்யமும்&lt;br /&gt;
  746. இல்லை. அதில் எந்த மதிப்பும் இல்லை. அது NULL - அவ்வளவுதான்.&lt;br /&gt;
  747. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  748. Allow NULL - இதன் மதிப்பை ஆமாம் (true), இல்லை (false) என்கிற கட்டுக்குள்&lt;br /&gt;
  749. &amp;nbsp;கொண்டு வரலாம். true / false.&lt;br /&gt;
  750. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  751. ஒவ்வொரு நபருக்கும் தனித்தனிப் பெயர் இருப்பதுபோல, இங்கே&lt;br /&gt;
  752. அவரவர்க்கும் தனித்தனி எண்கள் தரப்படும்.&lt;br /&gt;
  753. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  754. ஒன்றுக்கு மேற்பட்டவர்களுக்கு ஒரே பெயர்கள் இருக்கலாம் (பெயர்ப் பற்றாக்குறை!).&lt;br /&gt;
  755. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  756. எனக்குKarthik&lt;br /&gt;
  757. என்கிற பெயர்கள் உடைய 6 நண்பர்கள் இருக்கிறார்கள்.&lt;br /&gt;
  758. அவர்களைவித்தியாசப்படுத்த ஒவ்வொருவருக்கும்&lt;br /&gt;
  759. ஒரு எண்கள் தரப்படுகின்றன.&lt;br /&gt;
  760. அதுவேPerson#.&lt;br /&gt;
  761. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  762. இதற்கு Primary Key என்று பெயர்.&lt;br /&gt;
  763. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  764. &lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;அது என்ன Primary Key?&lt;/strong&gt;&lt;br /&gt;
  765. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  766. ஒன்றுக்குமேற்பட்டவர்களின்&lt;br /&gt;
  767. பெயர்கள் ஒரே மாதிரியாக இருக்கும்போது, ஒவ்வொருவரையும்&lt;br /&gt;
  768. தனித்தனியாக&lt;br /&gt;
  769. அடையாளம் காண்பிப்பதற்கு உதவும் மாற்று உறுப்புதான் PrimaryKey ஆகும்.&lt;br /&gt;
  770. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  771. ஒரு Tableல் பல Rowக்கள் இருக்கலாம். ஒரு Rowல் பல Column இருக்கலாம்.&lt;br /&gt;
  772. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  773. ஒவ்வொரு Rowவையும் மற்ற Row க்களில் இருந்து பிரித்து தனித்து&lt;br /&gt;
  774. அடையாளம் காண்பதற்கு Primary key பயன்படுத்துகிறோம்.&lt;br /&gt;
  775. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  776. சற்றுமுன்னர்&lt;br /&gt;
  777. NULL பற்றிப் பார்த்தோம். ஒரு குறிப்பிட்ட தகவலின் மதிப்பு,தற்சமயம்&lt;br /&gt;
  778. கையில் இல்லாமல் இருந்தால் அதை NULL என்று தீர்மானித்து&lt;br /&gt;
  779. அப்படியேவிட்டுவிடலாம்.&lt;br /&gt;
  780. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  781. &lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;Primary key ஆனது NULL ஆக இருக்க வாய்ப்பு உள்ளதா?&lt;/strong&gt;&lt;br /&gt;
  782. கண்டிப்பாக இல்லை. Primary key ஆனது எந்த ஒரு சமயத்திலும் NULL&lt;br /&gt;
  783. ஆக இருக்கவே இருக்காது.&lt;br /&gt;
  784. &lt;br /&gt;&lt;/div&gt;
  785. &lt;/div&gt;
  786. &lt;/div&gt;
  787. &lt;/div&gt;
  788. &lt;/div&gt;
  789. &lt;/div&gt;
  790. </content><link rel='replies' type='application/atom+xml' href='http://tamilprogramminng.blogspot.com/feeds/5409029595449233469/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tamilprogramminng.blogspot.com/2013/08/sql-2.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3691376985285892436/posts/default/5409029595449233469'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3691376985285892436/posts/default/5409029595449233469'/><link rel='alternate' type='text/html' href='http://tamilprogramminng.blogspot.com/2013/08/sql-2.html' title=' எளிய தமிழில் SQL - பாகம் 2'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5lTwrEf3d_VbCDf2s0rovBbh0KFGZj1B_fH-5XL02k7EduvT9EmA06MBN4DJvzC-HhdF3z-Qp-YNhuRP6ZOUhmPWHUZf_McvahtXnR69r3zl671kSkqKdlR12YGXfcfvNYY2dSWPr4O8/s72-c/table.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3691376985285892436.post-7368087358026314769</id><published>2013-08-08T04:19:00.003-07:00</published><updated>2013-08-08T04:20:48.445-07:00</updated><title type='text'>எளிய தமிழில் SQL - பாகம் 1</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
  791. &lt;div class=&quot;post row2 post--67309&quot; id=&quot;p67309&quot; style=&quot;background-color: white; border: 1px dashed rgb(3, 114, 190); font-family: SooriyanDotCom; font-size: 12px; line-height: 14px; margin: 20px 0px 4px; padding: 3px; text-shadow: rgb(255, 255, 255) 1px 0px 1px; z-index: 1;&quot;&gt;
  792. &lt;div class=&quot;inner&quot; style=&quot;margin: 0px; padding: 0px;&quot;&gt;
  793. &lt;div class=&quot;postbody&quot; style=&quot;clear: both; color: #141a87; float: left; line-height: 1.48em; margin: 0px; padding: 0px; width: 954.4375px;&quot;&gt;
  794. &lt;div class=&quot;content clearfix&quot; style=&quot;clear: left; font-family: SooriyanDotCom, Sooriyan, Arial, Tahoma; line-height: 1.4em; margin: 0px; min-height: 3em; overflow: hidden; padding: 0px;&quot;&gt;
  795. &lt;div style=&quot;margin: 0px; padding: 0px;&quot;&gt;
  796. &lt;div style=&quot;margin: auto; padding: 0px; text-align: center; width: 954.4375px;&quot;&gt;
  797. &lt;br /&gt;&lt;/div&gt;
  798. &lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;SQL என்பதன் விரிவு என்ன?&lt;/strong&gt;&lt;br /&gt;
  799. Structured Query Language&lt;br /&gt;
  800. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  801. &lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;SQLன் பயன்கள் யாவை?&lt;/strong&gt;&lt;br /&gt;
  802. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  803. Databaseன் தகவல்களைத் தேடி எடுப்பது,&lt;br /&gt;
  804. புதிய தகவலை ஏற்றுவதற்கு,&lt;br /&gt;
  805. பழைய விவரங்களை மாற்றுவதற்கு,&lt;br /&gt;
  806. அழிப்பதற்கு மற்றும் இன்னும் நிறைய விசயங்களுக்கு SQL பயன்படுகிறது.&lt;br /&gt;
  807. Database களில் இருக்கும் தகவல்களை எடுக்க / கொடுக்க SQL உதவுகிறது.&lt;br /&gt;
  808. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  809. Query என்றால் கேள்வி, விசாரணை, தேடுதல் என அர்த்தம் கொள்ளலாம்.&lt;br /&gt;
  810. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  811. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  812. சரி எடுத்த எடுப்பில் Database என ஆரம்பித்துவிட்டேன்.&lt;br /&gt;
  813. &lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;அது என்ன Database?&lt;/strong&gt;&lt;br /&gt;
  814. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  815. பாய்ஸ்படத்தில்&lt;br /&gt;
  816. நடிகர் செந்தில், மணிகண்டனுடன் ஒரு கையடக்க&lt;br /&gt;
  817. நோட்டுப்புத்தகத்தைவைத்துக்கொண்டு ”எந்தக் கோவிலில் எந்த நேரத்தில்&lt;br /&gt;
  818. &amp;nbsp;என்ன&lt;br /&gt;
  819. கொடுப்பார்கள்”? எனபுள்ளிவிவர அறிக்கை விடுவார்.&lt;br /&gt;
  820. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  821. ஒரு வசனம் பேசுவார் -&amp;nbsp;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;Information, Information is Wealth&amp;nbsp;&lt;/strong&gt;என்பார்.அது&lt;br /&gt;
  822. யாரோ எழுதிக்கொடுத்த வசனம் அல்ல. எழுத்தாளர் சுஜாதா&lt;br /&gt;
  823. பாய்ஸ்படத்துக்காக&lt;br /&gt;
  824. எழுதிக்கொடுத்த வசனம்தான். இது ஒரு நகைச்சுவை உதாரணம்.&lt;br /&gt;
  825. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  826. கீழே ஒரு எளிய Table வடிவம் ஒன்றைத் தருகிறேன்.&lt;br /&gt;
  827. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  828. ஒவ்வொரு வகுப்பறைக்கும், ஒரு வருகைப்பதிவேடு வைத்திருப்பார்கள்.&lt;br /&gt;
  829. அதில் மாணவர் பெயர், தேதி போன்றவை இருக்கும். அதில் தினமும்&lt;br /&gt;
  830. மாணவர் வந்திருக்கிறாரா? இல்லையா எனக் குறித்துக்கொள்வார்கள்.&lt;br /&gt;
  831. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  832. மாத இறுதியில் ஒரு குறிப்பிட்ட மாணவர் எத்தனை நாட்கள் வந்திருந்தார்?&lt;br /&gt;
  833. &amp;nbsp;அல்லது எத்தனை நாட்கள் வரவில்லை எனக் கணக்கிட்டுக்கொள்ளலாம்.&lt;br /&gt;
  834. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  835. இதில் மாணவர் பெயர், தேதி முதலியவற்றை Field அல்லது Column எனலாம்.&lt;br /&gt;
  836. மாணவரின் பெயர் எழுத்து வடிவில் இருக்கும்.&lt;br /&gt;
  837. அதனை String / Character / Variable character என்போம்.&lt;br /&gt;
  838. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  839. தேதி என்பது month-date-year அல்லது date/month/year போன்ற ஒரு வடிவில்&lt;br /&gt;
  840. அமைந்திருக்கும். இது இரண்டாவது Field ஆகும்.&lt;br /&gt;
  841. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  842. மாணவர் பெயர் ---&amp;gt; character(50)&lt;br /&gt;
  843. தேதி ---&amp;gt; datetime&lt;br /&gt;
  844. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  845. ஒரு மாணவருக்காக எவ்வளவு எழுத்துகளை அதிகபட்சமாக ஒதுக்குகிறோம்&lt;br /&gt;
  846. &amp;nbsp;என்பதே அடைப்புக்குறிக்குள் தரப்படுகிறது.&lt;br /&gt;
  847. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  848. உதாரணமாக மாணவரின் பெயர் ‘Babu’ எனக் கொண்டால் அவருடைய&lt;br /&gt;
  849. &amp;nbsp;பெயரின் எழுத்துக்களின் எண்ணிக்கை 4.&lt;br /&gt;
  850. ’valpaiyan @ Arun The Hero’ எனக் கொண்டால் அவருடைய பெயரின்&lt;br /&gt;
  851. ஒட்டுமொத்த எழுத்துக்களின் எண்ணிக்கை 25.&lt;br /&gt;
  852. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  853. இப்படிஒவ்வொருவரின்&lt;br /&gt;
  854. பெயரில் உள்ள எழுத்துக்களின் எண்ணிக்கை வித்தியாசப்படுகிறது.ஆகவே&lt;br /&gt;
  855. &amp;nbsp;நாமாகவே&lt;br /&gt;
  856. ஒரு உச்சமதிப்பு ஒன்றை கொடுத்துவிடவேண்டும். இங்கேcharacter(50) எனக்&lt;br /&gt;
  857. கொடுத்தால் Name என்கிற Field / Column ல் அதிகபட்சமாக50 எழுத்துக்களைப்&lt;br /&gt;
  858. பதிவுசெய்ய இயலும் எனக் கொள்க.&lt;br /&gt;
  859. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  860. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  861. மாணவர் பெயர் ---&amp;gt; character(50)&lt;br /&gt;
  862. தேதி ---&amp;gt; datetime இவை இரண்டும் இரண்டு Column எனக் கொண்டால்,&lt;br /&gt;
  863. &amp;nbsp;இவற்றினை ஒட்டுமொத்தமாக ஒரு Table எனலாம்.&lt;br /&gt;
  864. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  865. ஒரு Table என்பது பல Field களின் தொகுப்பு.&lt;br /&gt;
  866. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  867. ஒரு Field என்பது குறிப்பிட்ட ஒரே மாதிரியான தகவலின் தொகுப்பு.&lt;br /&gt;
  868. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  869. ஒவ்வொருFieldலும்&lt;br /&gt;
  870. நாம் பதிவு செய்யப்போகிற தகவலின் அடிப்படையில், எந்த&lt;br /&gt;
  871. மாதிரியானதகவலைப்&lt;br /&gt;
  872. பதிவு செய்யப் போகிறோம் என்பதை அதன் Data Type மூலம்நிர்ணயிக்கலாம்.&lt;br /&gt;
  873. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  874. மாணவரின்&lt;br /&gt;
  875. பெயரை character(50) என்றோம். இங்கே 50என்பது எத்தனை எழுத்துக்கள்&lt;br /&gt;
  876. என்பதைக் குறிக்கிறது. character என்பது ஒருData Type ஆகும்.&lt;br /&gt;
  877. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  878. தேதி --&amp;gt; datetime இங்கு datetime என்பது மற்றொரு வகை Data Type ஆகும்.&lt;br /&gt;
  879. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  880. எழுத்துக்களைப்பதியும்போது&lt;br /&gt;
  881. character, எண்களைப்பதியும்போது numbers(int,bigint,decimal,float).&lt;br /&gt;
  882. தேதியைக் குறிக்கும்போது datetime என ஒவ்வொருவகையான&lt;br /&gt;
  883. &amp;nbsp;தகவலுக்கும் ஒவ்வொரு&lt;br /&gt;
  884. DataType உள்ளது.&lt;br /&gt;
  885. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  886. ஆகவே Data Type என்பது தகவலின் வகையைக் குறிப்பதாகும்.&lt;br /&gt;
  887. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  888. SQL வாயிலாக ஒரு Table ஐ உருவாக்க / மாற்ற / அழிக்க / தகவலைத்&lt;br /&gt;
  889. தேட இயலும்.&lt;br /&gt;
  890. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  891. Tableஎன்பதில்&lt;br /&gt;
  892. பல Columns இருக்கும். ஒவ்வொரு Columnன் தகவலின் வகையை&lt;br /&gt;
  893. &amp;nbsp;DataTypeமூலம்&lt;br /&gt;
  894. நிர்ணயிக்கலாம். எவ்வளவு எழுத்துகள் என்பதை அடைப்புக்குறிக்குள்&lt;br /&gt;
  895. சொல்கிறோம்.&lt;br /&gt;
  896. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  897. உங்கள் கணினியில் SQL கட்டளைகளை இயக்கிப் பார்ப்பதற்காக&lt;br /&gt;
  898. &lt;a href=&quot;http://www.microsoft.com/downloads/details.aspx?FamilyID=220549b5-0b07-4448-8848-dcc397514b41&amp;amp;DisplayLang=en&quot; rel=&quot;nofollow&quot; style=&quot;-webkit-transition: 1s; color: #105289; margin: 0px; padding: 0px; text-decoration: none; transition: 1s;&quot; target=&quot;_blank&quot;&gt;Microsoft SQL Server 2005 Express Edition&lt;/a&gt;&amp;nbsp;மென்பொருளை இலவசமாகத்&lt;br /&gt;
  899. தரவிறக்கி உங்கள் கணினியில் நிறுவிக்கொள்ளவும்.&lt;br /&gt;
  900. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  901. &lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;பின் குறிப்பு :&lt;/strong&gt;&amp;nbsp;வாரத்திற்கு 2 முறையாவது இந்த எளிய தமிழில் SQL என்கிற&lt;br /&gt;
  902. தொடர் பதிவுகளை அளிக்கலாம் என முன்வந்துள்ளேன். உங்கள் ஆதரவு&lt;br /&gt;
  903. தேவை.&lt;br /&gt;
  904. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  905. பலபதிவுகளை&lt;br /&gt;
  906. பிற ஆங்கில வலைப்பூக்களில் இருந்து மொழிபெயர்த்துப்போட்டிருக்கிறேன்.&lt;br /&gt;
  907. அதற்கு ஆதரவளித்த அன்புள்ளங்களுக்கு நன்றி. அதுபோலஇந்தத்&lt;br /&gt;
  908. தொடரின் வெற்றி&lt;br /&gt;
  909. உங்கள் கையில்தான் உள்ளது.&lt;br /&gt;
  910. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  911. முதலில் சிலterms உங்களுக்குக்&lt;br /&gt;
  912. குழப்பமாக இருப்பினும் தொடர்ந்து படியுங்கள். இங்கேகுறிப்பிடும்&lt;br /&gt;
  913. உதாரணங்களை கணினியில் செய்து பாருங்கள். வித்தியாசத்தைநீங்களே&lt;br /&gt;
  914. &amp;nbsp;உணர்வீர்கள்.&lt;br /&gt;
  915. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  916. இங்கே&lt;br /&gt;
  917. இனிவரும் காலங்களில் நான்கொடுக்கப்போகும் உதாரணங்களை&lt;br /&gt;
  918. இயக்கிப் பார்க்க&lt;br /&gt;
  919. இந்த இலவச மென்பொருளை உங்கள்கணினியில் நிறுவிக்கொள்ளவும்.&lt;br /&gt;
  920. &lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;
  921. &lt;a href=&quot;http://www.microsoft.com/downloads/details.aspx?FamilyID=220549b5-0b07-4448-8848-dcc397514b41&amp;amp;DisplayLang=en&quot; rel=&quot;nofollow&quot; style=&quot;-webkit-transition: 1s; color: #105289; margin: 0px; padding: 0px; text-decoration: none; transition: 1s;&quot; target=&quot;_blank&quot;&gt;http://www.microsoft.com/downloads/details.aspx?FamilyID=220549b5-0b07-4448-8848-dcc397514b41&amp;amp;DisplayLang=en&lt;/a&gt;&lt;br /&gt;
  922. &lt;div style=&quot;font-size: 1.3em;&quot;&gt;
  923. &lt;br /&gt;&lt;/div&gt;
  924. &lt;/div&gt;
  925. &lt;/div&gt;
  926. &lt;/div&gt;
  927. &lt;/div&gt;
  928. &lt;/div&gt;
  929. &lt;/div&gt;
  930. </content><link rel='replies' type='application/atom+xml' href='http://tamilprogramminng.blogspot.com/feeds/7368087358026314769/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tamilprogramminng.blogspot.com/2013/08/sql-1.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3691376985285892436/posts/default/7368087358026314769'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3691376985285892436/posts/default/7368087358026314769'/><link rel='alternate' type='text/html' href='http://tamilprogramminng.blogspot.com/2013/08/sql-1.html' title='எளிய தமிழில் SQL - பாகம் 1'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3691376985285892436.post-6999456342896515355</id><published>2013-08-07T20:56:00.007-07:00</published><updated>2013-08-07T20:56:58.223-07:00</updated><title type='text'>Pass by value vs Pass by reference</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
  931. &lt;h3 class=&quot;post-title entry-title&quot; style=&quot;color: #d52a33; font-family: Georgia, Utopia, &#39;Palatino Linotype&#39;, Palatino, serif; font-size: 22px; font-weight: normal; margin: 0px; position: relative;&quot;&gt;
  932. &lt;br /&gt;&lt;/h3&gt;
  933. &lt;div class=&quot;post-body entry-content&quot; id=&quot;post-body-3435056033110617074&quot; itemprop=&quot;articleBody&quot; style=&quot;line-height: 1.4; position: relative; width: 606px;&quot;&gt;
  934. &lt;div dir=&quot;ltr&quot; trbidi=&quot;on&quot;&gt;
  935. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  936. &lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;முந்தைய பாகத்தில்&amp;nbsp;Named and Optional Arguments என்றால் என்னவென்று பார்த்தோம் அல்லவா? ஒரு procedure ரையோ அல்லது function னையோ call செய்யும்போது இரண்டு வழிகளில்&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;அவற்றிற்கு&amp;nbsp;நாம் arguments களை&amp;nbsp;அனுப்பலாம். அவை Pass by value மற்றும் Pass by reference எனப்படும். அதைப்பற்றி&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;இந்த பாடத்தில்&amp;nbsp;பார்ப்போம்.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;குறுக்கெழுத்துப்போட்டி அச்சிடப்பட்ட தாளை வைத்துக்கொண்டு உங்கள் வீட்டு திண்ணையில் உட்கார்ந்து கொண்டிருக்கிறீர்கள். பதில்களை நிரப்ப ஆயத்தமாகும்போது எதிர்வீட்டு நண்பர் வருகிறார். ஆசையா இருக்குப்பா! நானும் பதில் எழுதறேனே, எனக்கும் கொஞ்சம் கொடேன் என்று கேட்கிறார்.&lt;/span&gt;&lt;br /&gt;&lt;a href=&quot;&quot; name=&quot;more&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  937. &lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEieOM5ltObSDe4T6jFtSvL2HgjqtO7IDkpgB7rJ2G7Nifo7wQRqA9lHPbEZJRi_SS49WWICOT02mcq4xSZNbhyY3hOsu3COn5t5HMG_SuNadxvMfoIkK_YIQKqTMle4o_EECXp9RoQuggWi/s1600/pass+by+value+vs+pass+by+reference.jpg&quot; imageanchor=&quot;1&quot; style=&quot;color: #7d181e; margin-left: 1em; margin-right: 1em; text-decoration: none;&quot;&gt;&lt;img alt=&quot;pass by value vs pass by reference, passing by value vs passing by reference, தமிழ் கம்ப்யூட்டர், தமிழ் பாடம், கல்வி&quot; border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEieOM5ltObSDe4T6jFtSvL2HgjqtO7IDkpgB7rJ2G7Nifo7wQRqA9lHPbEZJRi_SS49WWICOT02mcq4xSZNbhyY3hOsu3COn5t5HMG_SuNadxvMfoIkK_YIQKqTMle4o_EECXp9RoQuggWi/s320/pass+by+value+vs+pass+by+reference.jpg&quot; style=&quot;-webkit-box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 20px; background-color: white; background-position: initial initial; background-repeat: initial initial; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; border-top-left-radius: 5px; border-top-right-radius: 5px; border: 1px solid rgb(204, 204, 204); box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 20px; padding: 8px; position: relative;&quot; title=&quot;&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
  938. &lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;நீங்கள் அந்த தாளை அவரிடம் கொடுக்கிறீர்கள். அவர் விடைகளை எழுதுகிறார். பின்னர் அந்த தாளை உங்களிடம் தந்துவி்ட்டார்.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;இப்பொழுது சொல்லுங்கள். உங்கள் கையில் இருக்கும் தாளில் உங்கள் நண்பருடைய பதில்கள் இருக்குமா? இருக்காதா?&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;இருக்கும்.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;சரியான பதில். எதனால் இருக்கிறது?&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;ஏன்னா, நான் என்னுடைய தாளையல்லவா கொடுத்தேன். அதில் அவர் மாற்றம் செய்தால் அது இருக்கத்தானே செய்யும்!&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;மிகச் சரியாக சொன்னீர்கள்.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;சரி அடுத்த கேள்வி.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;ஒருவேளை நீங்கள் அந்த தாளை ஒரு நகலெடுத்து அவரிடம் கொடுக்கிறீர்கள் என்று வைத்துக்கொள்வோம். அதில் அவர் விடைகளை எழுதுகிறார்.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;உங்களிடம் உள்ள தாளில் அவருடைய பதில் இருக்குமா?&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;இருக்காது.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;ஏன் உங்களுடைய தாளில் அவருடைய பதில் இல்லை?&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;ஏன்னா, நான் காப்பியைத்தானே கொடுத்தேன். ஒரிஜினல் என்கிட்டதானே இருக்கு. அவர் அந்த தாளில் மாற்றினால் அது எப்படி இந்ததாளில் இருக்கும்.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;மிகச் சரியாக சொன்னீர்கள்.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;மேற்கண்ட இரண்டு வழிகளில் எந்த வழியை எப்பொழுது தேர்ந்தெடுப்பீர்கள்?&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;நாங்கள் இரண்டு பேரும் சேர்ந்து குறுக்கெழுத்துபோட்டிக்கு பதில் எழுதனும்னு தோன்றினால் ஒரு தாளையே பகிர்ந்துகொள்வேன்.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;அல்லது நண்பர் எழுதிய பதில் எனக்குத் தேவையில்லை என்று தோன்றினால் ஒரு நகலெடுத்து கொடுத்துடுவேன்.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;மிகச்சரியாக சொன்னீர்கள்.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;இதை நம் பாடத்தோடு பொருத்தி பார்த்தால் இப்படி உருவகப்படுத்தலாம்.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Main Program - நீங்கள்&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Sub Program / Procedure / Function - உங்கள் நண்பர்&lt;/span&gt;&lt;/div&gt;
  939. &lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13px; line-height: 18px;&quot;&gt;Parameter / Formal Parameter - உங்கள் நண்பர் எதிர்பார்ப்பது&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot; /&gt;&lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  940. &lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Argument / Actual parameter - நீங்கள் கொடுக்கும் குறுக்கெழுத்து தாள்&lt;/span&gt;&lt;/div&gt;
  941. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  942. &lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Passing method - குறுக்கெழுத்து தாளை அவருக்கு கொடுக்கும் முறை&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;நீங்கள் தேர்ந்தெடுத்த வழிகளை இப்படி உருவகப்படுத்தலாம்.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;நீங்கள் உங்கள் நண்பருக்கு உங்கள் தாளையே பகிர்ந்து கொடுக்கிறீர்கள்.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Main Program sends a&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;reference of a variable&lt;/span&gt;&amp;nbsp;to Sub Program&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;நீங்கள் உங்கள் உண்பருக்கு உங்கள் தாளை நகலெடுத்து கொடுக்கிறீர்கள்.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Main Program sends a&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;copy / value of a variable&amp;nbsp;&lt;/span&gt;to Sub Program&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;நீங்கள் தேர்ந்தெடுக்கும் முதல் வழிக்கு பெயர்தான் Pass by reference&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;நீங்கள் தேர்ந்தெடுக்கும் இரண்டாம் வழிக்கு பெயர்தான் Pass by value&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;இரண்டிற்கும் வித்தியாசம் புரிந்ததா? உங்களுடைய தேவைக்கு தக்கவாறு ஒரு வழியை நீங்கள் தேர்ந்தெடுத்துக்கொள்ளலாம்தானே?&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Formal Parameter&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Formal parameter என்பது procedure definition னில் இருப்பது. அதாவது ஒரு procedure ரையோ அல்லது ஒரு function னையோ declare செய்யும்போது இன்னன்ன parameter இதற்கு தேவை என்று குறிப்பிடுவது Formal parameter ஆகும்.&lt;/span&gt;&lt;br /&gt;&lt;div&gt;
  943. &lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;b&gt;Actual parameter&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Actual parameter என்பது procedure ரையோ அல்லது function னையோ call செய்யும்போது நாம் கொடுக்கும் input value வாகும்.&lt;/span&gt;&lt;/div&gt;
  944. &lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;b&gt;Pass By Reference&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
  945. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  946. &lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;1. Actual parameter variable லுடைய address, formal parameter ருக்கு அனுப்பப்படுகிறது. இதனால்&amp;nbsp; Actual Parameter ரும் formal parameter ரும் ஒரே memory address ஸை பயன்படுத்துகின்றன. (&lt;span style=&quot;color: blue;&quot;&gt;நாங்கள் இரண்டு பேரும் சேர்ந்து குறுக்கெழுத்துபோட்டிக்கு பதில் எழுதனும்னு தோன்றினால் ஒரு தாளையே பகிர்ந்துகொள்வேன்&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;என்ற பதிலை ஞாபகப்படுத்தி கொள்ளவும்.)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;2. sub program / function அந்த formal parameter value வை மாற்றினால் அது actual parameter ரைத்தான் மாற்றுகிறது.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;3. ஒரு function 1 value வைத்தான் return செய்யும் என்கிற விதியை மாற்றி எத்தனை value வை வேண்டுமானாலும் return செய்யவைக்கலாம். அதாவது எத்தனை pass by reference பயன்படுத்துகின்றோமோ அத்தனை value க்கள் return செய்யப்படும்.&amp;nbsp; (&lt;span style=&quot;color: blue;&quot;&gt;நமது உதாரணத்தில் இருக்கும்&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;FnReturnTwoValues என்கிற function ஐ பார்க்க&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;)&lt;/span&gt;&lt;/div&gt;
  947. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  948. &lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;4. ஒரு procedure எதையும் return செய்யாது என்கிற விதியை மாற்றி எத்தனை value வை வேண்டுமானாலும் return செய்யவைக்கலாம். அதாவது எத்தனை pass by reference பயன்படுத்துகின்றோமோ அத்தனை value க்கள் return செய்யப்படும். (&lt;span style=&quot;color: blue;&quot;&gt;நமது உதாரணத்தில் இருக்கும்&amp;nbsp;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;GetBigestNoProc&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;என்கிற&amp;nbsp;procedureஐ பார்க்க&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;)&lt;/div&gt;
  949. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  950. &lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;5. Memory address share பண்ணப்படுவதால் variable களை மட்டும் தான் actual parameter ராக அனுப்பமுடியும். Value க்களை அனுப்ப முடியாது.&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
  951. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  952. &lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;b&gt;Pass By Value:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;1. Actual parameter variable லுடைய value, formal parameter ருக்கு அனுப்பப்படுகிறது. இதனால்&amp;nbsp; Actual parameter ரும் formal parameter ரும் வெவ்வேறு memory address களை பயன்படுத்துகின்றன. (&lt;span style=&quot;color: blue;&quot;&gt;அவன் எழுதிய பதில் எனக்குத் தேவையில்லை என்று தோன்றினால் ஒரு பிரதியெடுத்து கொடுத்துடுவேன்&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;என்ற பதிலை ஞாபகப்படுத்தி கொள்ளவும்.)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;2. Sub program / function அந்த formal parameter value வை மாற்றினால் actual parameter மாறாது.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;3. Variable, value என்று எதை வேண்டுமானாலும் actual parameter ராக அனுப்பமுடியும்&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  953. &lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhx2zhvLeKVsCgI8TH1bAXc_CLtEhv2070WbmBjHLwpk2q-tQw4Q71mOWXAEWDy6C7NbRy5FpCynnZUurWjME-OrzuDuQ4ZOxUIFljInnJp0VRvBeRgVXS8LCF72Lj8CD3hmobCIA9-3M1p/s1600/how+pass+by+value+and+pass+by+reference+works.jpg&quot; imageanchor=&quot;1&quot; style=&quot;color: #7d181e; margin-left: 1em; margin-right: 1em; text-decoration: none;&quot;&gt;&lt;img alt=&quot;passing by value and passing by reference, faridh, tamil computer tips, tamil programming, கலை, கணிணி, மென்பொருள், சாப்ட்வேர், கற்கண்டு, karkandu&quot; border=&quot;0&quot; height=&quot;236&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhx2zhvLeKVsCgI8TH1bAXc_CLtEhv2070WbmBjHLwpk2q-tQw4Q71mOWXAEWDy6C7NbRy5FpCynnZUurWjME-OrzuDuQ4ZOxUIFljInnJp0VRvBeRgVXS8LCF72Lj8CD3hmobCIA9-3M1p/s400/how+pass+by+value+and+pass+by+reference+works.jpg&quot; style=&quot;-webkit-box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 20px; background-color: white; background-position: initial initial; background-repeat: initial initial; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; border-top-left-radius: 5px; border-top-right-radius: 5px; border: 1px solid rgb(204, 204, 204); box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 20px; padding: 8px; position: relative;&quot; title=&quot;&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
  954. &lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;உதாரணத்திற்கு அடுத்து வரும் புரோகிராமை பார்க்கவும்&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;procedure Main;&lt;br /&gt;var&lt;br /&gt;&amp;nbsp; Val1, Val2 : Integer;&lt;br /&gt;&amp;nbsp; Val3, Val4 : Integer;&lt;br /&gt;begin&lt;br /&gt;&amp;nbsp; Val1 := 10;&lt;br /&gt;&amp;nbsp; Val2 := 20;&lt;br /&gt;&amp;nbsp; Val3 := 0;&lt;br /&gt;&amp;nbsp; Val4 := Val3;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; //call function to get biggest among 2 numbers&lt;br /&gt;&amp;nbsp; Val3 := GetBigestNoFn ( Val1, Val2 );&lt;br /&gt;&amp;nbsp; Print Val1, Val2, Val3, Val4;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; //call procedure to get biggest among 2 numbers!&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&amp;nbsp; //pass by reference&amp;nbsp;&lt;span style=&quot;font-size: xx-small;&quot;&gt;மூலம் இங்கே&lt;/span&gt;&amp;nbsp;procedure&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&amp;nbsp;&amp;nbsp;//ஒரு value வை return&amp;nbsp;&lt;span style=&quot;font-size: xx-small;&quot;&gt;செய்வது போன்ற தோற்றத்தை ஏற்படுத்த முடிகிறது.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;GetBigestNoProc ( Val1, Val2,&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;Val3&amp;nbsp;&lt;/span&gt;);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; Print Val1, Val2, Val3, Val4;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; //One function return more than one value!&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&amp;nbsp; //pass by reference மூலம் இங்கே function&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&amp;nbsp;&amp;nbsp;//more&amp;nbsp;than&amp;nbsp;1&amp;nbsp;value வை return&amp;nbsp;&lt;span style=&quot;font-size: xx-small;&quot;&gt;செய்வது போன்ற தோற்றத்தை ஏற்படுத்த முடிகிறது.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; Val4 := FnReturnTwoValues (&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;Val1&amp;nbsp;&lt;/span&gt;)&lt;br /&gt;&amp;nbsp; Print Val1, Val2, Val3, Val4;&lt;br /&gt;end;&lt;br /&gt;&lt;br /&gt;function GetBigestNoFn ( ByVal1, ByVal2 : Integer ) : Integer;&lt;br /&gt;begin&lt;br /&gt;&amp;nbsp; If ByVal1 &amp;gt; ByVal2&lt;br /&gt;&amp;nbsp; then Result := ByVal1&lt;br /&gt;&amp;nbsp; else Result := ByVal2;&lt;br /&gt;end;&lt;br /&gt;&lt;br /&gt;procedure GetBigestNoProc ( ByVal1, ByVal2 : Integer;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;Var ByRefBigNum : Integer&lt;/span&gt;&amp;nbsp;);&lt;br /&gt;begin&lt;br /&gt;&amp;nbsp; //pass by reference value is modified&lt;br /&gt;&amp;nbsp; If ByVal1 &amp;gt; ByVal2&lt;br /&gt;&amp;nbsp; then ByRefBigNum := ByVal1&lt;br /&gt;&amp;nbsp; else ByRefBigNum := ByVal2;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp; //pass by values are modified&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;//but it will not affect actual paramters&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; ByVal1 := ByVal1 + ByVal1;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; ByVal2 := ByVal2 + ByVal2;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;end;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;function FnReturnTwoValues (&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;Var ByRefRetVal : Integer&lt;/span&gt;&amp;nbsp;) : Integer;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;begin&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; ByRefRetVal := ByRefRetVal * 2;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; Return := ByRefRetVal * 2;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;end;&lt;/span&gt;&lt;/div&gt;
  955. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  956. &lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  957. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  958. &lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;இந்த புரோகிராம் எப்படி வேலை செய்கிறது என்பதை விளக்கும் படத்தை கீழே காண்க&lt;/span&gt;&lt;/div&gt;
  959. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  960. &lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  961. &lt;div class=&quot;separator&quot; style=&quot;background-color: #fefdfa; clear: both; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: center;&quot;&gt;
  962. &lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiCmXdkIdNtbHfD0dsB-_RUZ1kisr30IxHyrG45zQa1CGwh2Ok_8Hp2MwqUJDlwstLUsXiFHcUluk2q-pZT0V0fn37TDDjgI2cdr0a8PZNUpEg9Yl6w-ZNqhGMMr2QMZUa0YW66ypvIRbC/s1600/pass+by+value+vs+pass+by+reference.jpg&quot; imageanchor=&quot;1&quot; style=&quot;color: #7d181e; margin-left: 1em; margin-right: 1em; text-decoration: none;&quot;&gt;&lt;img alt=&quot;calling by value, calling by reference, tamil lessons, hello world, how to write program, programming for dummies, kalkandu, கல்கண்டு&quot; border=&quot;0&quot; height=&quot;281&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiCmXdkIdNtbHfD0dsB-_RUZ1kisr30IxHyrG45zQa1CGwh2Ok_8Hp2MwqUJDlwstLUsXiFHcUluk2q-pZT0V0fn37TDDjgI2cdr0a8PZNUpEg9Yl6w-ZNqhGMMr2QMZUa0YW66ypvIRbC/s400/pass+by+value+vs+pass+by+reference.jpg&quot; style=&quot;-webkit-box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 20px; background-color: white; background-position: initial initial; background-repeat: initial initial; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; border-top-left-radius: 5px; border-top-right-radius: 5px; border: 1px solid rgb(204, 204, 204); box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 20px; padding: 8px; position: relative;&quot; title=&quot;&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
  963. &lt;div&gt;
  964. &lt;br /&gt;&lt;/div&gt;
  965. &lt;/div&gt;
  966. &lt;/div&gt;
  967. &lt;/div&gt;
  968. </content><link rel='replies' type='application/atom+xml' href='http://tamilprogramminng.blogspot.com/feeds/6999456342896515355/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tamilprogramminng.blogspot.com/2013/08/pass-by-value-vs-pass-by-reference.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3691376985285892436/posts/default/6999456342896515355'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3691376985285892436/posts/default/6999456342896515355'/><link rel='alternate' type='text/html' href='http://tamilprogramminng.blogspot.com/2013/08/pass-by-value-vs-pass-by-reference.html' title='Pass by value vs Pass by reference'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEieOM5ltObSDe4T6jFtSvL2HgjqtO7IDkpgB7rJ2G7Nifo7wQRqA9lHPbEZJRi_SS49WWICOT02mcq4xSZNbhyY3hOsu3COn5t5HMG_SuNadxvMfoIkK_YIQKqTMle4o_EECXp9RoQuggWi/s72-c/pass+by+value+vs+pass+by+reference.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3691376985285892436.post-7407587863393098644</id><published>2013-08-07T20:56:00.003-07:00</published><updated>2013-08-07T20:56:14.414-07:00</updated><title type='text'>Named and Optional Arguments என்றால் என்ன?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
  969. &lt;div class=&quot;post-body entry-content&quot; id=&quot;post-body-7475876909202832278&quot; itemprop=&quot;articleBody&quot; style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; position: relative; width: 606px;&quot;&gt;
  970. &lt;div dir=&quot;ltr&quot; trbidi=&quot;on&quot;&gt;
  971. &lt;div style=&quot;text-align: center;&quot;&gt;
  972. &lt;br /&gt;&lt;/div&gt;
  973. &lt;div style=&quot;text-align: justify;&quot;&gt;
  974. முந்தைய பாகத்தில்&amp;nbsp;ஒரு procedure ரை call செய்யும் போது அதில் இருக்கும் அத்தனை parameter ருக்குமான input களையும் அதே வரிசைப்படி கொடுக்கவேண்டும். இல்லையானால் error message வரும் என்பதை பார்த்தோம்.&lt;/div&gt;
  975. &lt;div style=&quot;text-align: justify;&quot;&gt;
  976. &lt;br /&gt;&lt;b&gt;Function / procedure calling அடிப்படை -&amp;nbsp;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;1) declaration னில் உள்ள parameter வரிசைப்படி value க்களை அனுப்ப வேண்டும்.&lt;/div&gt;
  977. &lt;div style=&quot;text-align: justify;&quot;&gt;
  978. 2) அனைத்து parameter ருக்குமான value க்களையும் கட்டாயம் அனுப்பவேண்டும்.&amp;nbsp;&lt;/div&gt;
  979. &lt;div style=&quot;text-align: justify;&quot;&gt;
  980. &lt;br /&gt;&lt;b&gt;இதில் உள்ள பிரச்சினைகள் -&lt;/b&gt;&lt;/div&gt;
  981. &lt;div style=&quot;text-align: justify;&quot;&gt;
  982. &lt;br /&gt;1) வரிசைப்படித்தான் அனுப்ப வேண்டுமா? மாற்றி அனுப்பமுடியாதா?&lt;br /&gt;2) கட்டாயம் அனுப்பித்தான் ஆகவேண்டுமா? விதிவிலக்கு இல்லையா?&lt;/div&gt;
  983. &lt;div style=&quot;text-align: justify;&quot;&gt;
  984. &lt;br /&gt;&lt;a href=&quot;&quot; name=&quot;more&quot;&gt;&lt;/a&gt;சில programming language ல் இந்த 2 பிரச்சினைகளுக்கும் தீர்வு இருக்கிறது. அவை என்னவென்று இந்த பாடத்தில் பார்ப்போம்.&lt;/div&gt;
  985. &lt;div style=&quot;text-align: justify;&quot;&gt;
  986. &lt;br /&gt;function ArithmeticFunction (Number1 : Float; Operator : Integer; Number2 : Float) : Float;&lt;br /&gt;begin&lt;br /&gt;&amp;nbsp; If Operator = 1&lt;br /&gt;&amp;nbsp; then Result := Number1 + Number2&lt;br /&gt;&amp;nbsp; else If Operator = 2&lt;br /&gt;&amp;nbsp; then Result := Number1 - Number2&lt;br /&gt;&amp;nbsp; else If Operator = 3&lt;br /&gt;&amp;nbsp; then Result := Number1 * Number2&lt;br /&gt;&amp;nbsp; else Result := Number1 / Number2;&lt;br /&gt;end;&lt;br /&gt;&lt;br /&gt;மேலே ArithmeticFunction என்ற function declare செய்யப்பட்டுள்ளது. இதில் 2 float type, 1 integer type parameter கள் உள்ளன. இது function ஆக இருக்கின்றதால் ஒரு value வை return செய்கிறது. Return ஆகக்கூடிய value float data type ஆக இருக்கிறது.&lt;br /&gt;&lt;br /&gt;இந்த function னை பார்த்த உடன் அது என்ன செய்கிறதென்று உங்களுக்கு புரிந்தால் உங்களுக்கு புரோகிராமிங் புரிகிறது என்று அர்த்தம். புரோகிராம் இன்னும் சரளமாக எழுதத் தெரியாவிட்டாலும் குறைந்தபட்சம் என்ன எழுதப்பட்டுள்ளதென்பதாவது புரிகிறதே. புரோகிராமர் ஆவதற்கு இதுவே அடிப்படை. நமது புரோகிராமின் ஒவ்வொரு வரியும் என்ன செய்கிறதென்று நமக்கு புரியவேண்டும். ஒரு வரி புரியாவிட்டாலும் அந்த புரோகிராம் நமது கட்டுப்பாட்டில் இல்லை என்று அர்த்தம். மண்குதிரையை நம்பி ஆற்றில் இறங்கின கதைதான்.&lt;br /&gt;&lt;br /&gt;ஒவ்வொரு வரியும் புரிந்துவிட்டால் மனப்பாடம் செய்யாமல்&amp;nbsp;புரோகிராம் எழுத ஆரம்பித்துவிடலாம். ஒரு புரோகிராமில் எங்கு பிழையிருக்கிறது என்பதையும் கண்டுபிடித்துவிடலாம்.&lt;br /&gt;&lt;br /&gt;-- புரியாதவர்களுக்காக மேற்கண்ட புரோகிராமுடைய pseudo-code இதோ:&lt;br /&gt;&amp;nbsp;&lt;br /&gt;function ArithmeticFunction (Number1 : Float; Operator : Integer; Number2 : Float) : Float;&lt;br /&gt;begin&lt;br /&gt;&amp;nbsp; If Operator = 1 என்றால் கூட்டச் சொல்கிறார்கள் என்று புரிந்துகொள்&lt;br /&gt;&amp;nbsp; then Result := இரண்டு நம்பரையும் கூட்டவும்&lt;br /&gt;&amp;nbsp; else If Operator = 2 என்றால் கழிக்கச் சொல்கிறார்கள் என்று புரிந்துகொள்&lt;br /&gt;&amp;nbsp; then Result := முதல் நம்பரிலிருந்து இரண்டாவதை கழி&lt;br /&gt;&amp;nbsp; else If Operator = 3 என்றால் பெருக்கச் சொல்கிறார்கள் என்று புரிந்துகொள்&lt;br /&gt;&amp;nbsp; then Result := இரண்டு நம்பரையும் பெருக்கவும்&lt;br /&gt;&amp;nbsp; else 1,2,3 தவிர வேறெதுவும் இருந்தால்&lt;br /&gt;&amp;nbsp; Result := முதல் நம்பரை இரண்டாவதைக் கொண்டு வகுக்கவும்.&lt;br /&gt;end;&lt;br /&gt;&lt;br /&gt;மேற்கண்ட function னானது கொடுக்கப்பட்ட parameter ருக்கு தக்கவாறு 4 விதமான செயல்களை செய்து result ஐ திருப்பிதரும் வகையில் வடிவமைக்கப்பட்டுள்ளது.&lt;br /&gt;&lt;br /&gt;இந்த function னை call செய்யவேண்டுமென்றால் 3 value க்களை கட்டாயம் நாம் அனுப்பவேண்டும். அதில் உள்ள வரிசைப்படி அனுப்ப வேண்டும். இதில் ஏதாவது ஒன்றை செய்யாவிட்டாலும் error என்று வரும்.&lt;br /&gt;&lt;br /&gt;அடுத்து Main program மிலிருந்து நமது function னை call செய்து test செய்து பார்ப்போம்.&lt;br /&gt;&lt;br /&gt;procedure Main;&lt;br /&gt;Var&lt;br /&gt;&amp;nbsp; FirstNumber, SecondNumber, Answer : Float;&lt;br /&gt;begin&lt;br /&gt;&amp;nbsp; FirstNumber := 10.10;&lt;br /&gt;&amp;nbsp; SecondNumber := 20.20;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; Answer := ArithmeticFunction (FirstNumber, 1, SecondNumber) ; //addition operation. Answer is 30.3&lt;br /&gt;&amp;nbsp; ShowMessage( Answer) ;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; Answer := ArithmeticFunction (10.10, 2, 5) ; //subtract operation. Answer is 5.1&lt;br /&gt;&amp;nbsp; ShowMessage( Answer) ;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; Answer := ArithmeticFunction (FirstNumber, 3, 5.5) ; //multiplicative operation. Answer is 55.55&lt;br /&gt;&amp;nbsp; ShowMessage( Answer) ;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; Answer := ArithmeticFunction (FirstNumber, 4, 5) ; //division operation. Answer is 2.02&lt;br /&gt;&amp;nbsp; ShowMessage( Answer) ;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; //next line has&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;data type mismatch problem. Incorrect order of values;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; //second parameter is declared as integer; but float value is passed here;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; Answer := ArithmeticFunction (FirstNumber, SecondNumber, 1) ;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; ShowMessage( Answer) ;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;end;&lt;br /&gt;&lt;br /&gt;இதில் உள்ள பிரச்சினை என்னவென்றால் formal parameter signature ரும் actual parameter signature ரும் வேறுவேறாக இருக்கின்றன. சரியான வரிசையில் value க்களை ஒழுங்கு படுத்தி திருத்தினால் புரோகிராம் வேலை செய்யும். அல்லது நாம் கொடுக்கும் value வை எந்த parameter ருக்குரியது என்று சொல்லவேண்டும். சொல்லிவிட்டால் புரோகிராம் அதை புரிந்து கொள்ளும். Error காட்டாது.&lt;br /&gt;&lt;br /&gt;&lt;div&gt;
  987. &lt;span style=&quot;color: blue;&quot;&gt;குறிப்பு : Parameter களுக்கான input value க்களை arguments என்றும் குறிப்பிடுவார்கள்.&lt;/span&gt;&lt;/div&gt;
  988. &lt;br /&gt;&lt;b&gt;Named Arguments என்றால் என்ன?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;எந்த value எந்த parameter ருக்குரியது என்று குறிப்பிடுவதை Named Arguments என்பர்.&lt;br /&gt;&lt;br /&gt;மேலே உள்ள Main Procedure ரில் சிவப்பு வண்ணத்தில் இருக்கும் வரியை இந்த வசதியை கொண்டு திருத்துவோம்.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: red;&quot;&gt;பிழையான வரி&lt;/span&gt;&lt;/div&gt;
  989. &lt;div style=&quot;text-align: justify;&quot;&gt;
  990. &lt;span style=&quot;color: red;&quot;&gt;Answer := ArithmeticFunction (FirstNumber, SecondNumber, 1) ;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;சரியான வழி 1: சரியான வரிசையில் மாற்றி எழுதுவது&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Answer := ArithmeticFunction (FirstNumber, 1, SecondNumber,) ;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;//கூட்டவேண்டும் என மாறிவிட்டது&lt;br /&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;சரியான வழி 2: Named Arguments வசதியை பயன்படுத்துவது&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Answer := ArithmeticFunction (Number1 = FirstNumber, Number2 = SecondNumber, Operator = 1) ;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;அதாவது எந்த value எந்த parameter ருக்குரியது என்பதை சொல்லிவிட்டதால் parameter வரிசையை பற்றி கவலைப்படத் தேவையில்லை. கூட்டவேண்டும் என புரிந்துகொள்ளும்.&lt;br /&gt;&lt;/div&gt;
  991. &lt;div style=&quot;text-align: justify;&quot;&gt;
  992. &lt;b&gt;Optional Parameters என்றால் என்ன?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;நமது function னில் உள்ள parameter களில் சிலவற்றிற்கு input அவசியமில்லை. வந்தால் நலம் வராவிட்டாலும் பரவாயில்லை என்ற நிலை ஏற்பட்டால் Optional Parameter என்கிற concept நமக்கு உதவியாக இருக்கிறது.&lt;br /&gt;&lt;br /&gt;இந்த பாடத்தின் ஆரம்பத்தில் உள்ள function னை மாற்றம் செய்து பார்ப்போம்.&lt;br /&gt;&lt;br /&gt;function ArithmeticFunction (Number1 : Float; Operator : Integer;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;Optional Number2 : Float = 1.0&lt;/span&gt;) : Float;&lt;br /&gt;begin&lt;br /&gt;&amp;nbsp; If Operator = 1&lt;br /&gt;&amp;nbsp; then Result := Number1 + Number2&lt;br /&gt;&amp;nbsp; else If Operator = 2&lt;br /&gt;&amp;nbsp; then Result := Number1 - Number2&lt;br /&gt;&amp;nbsp; else If Operator = 3&lt;br /&gt;&amp;nbsp; then Result := Number1 * Number2&lt;br /&gt;&amp;nbsp; else Result := Number1 / Number2;&lt;br /&gt;end;&lt;br /&gt;&lt;br /&gt;இந்த function னை call செய்யவேண்டுமென்றால் இரண்டு parameter ருக்கான value க்களை கட்டாயம் நாம் அனுப்பவேண்டும். ஒரு parameter ருக்கான value வை அனுப்பவேண்டிய கட்டாயமில்லை. அனுப்பினால் அது எடுத்துக்கொள்ளப்படும். அனுப்பாவிட்டால் அதில் உள்ள Default Value எடுத்துக்கொள்ளப்படும்.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;Optional Number2 : Float = 1.0 என்பதன் அர்த்தம்...&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;Number2 என்பது Float data type வகையைச் சேர்ந்த ஒரு Optional Parameter ஆகும் இதன் default value 1.0 ஆகும்.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;இங்கே கவனிக்கவேண்டிய விசயம்:&lt;br /&gt;&lt;br /&gt;ஒரு function னில் உள்ள அனைத்து parameter களும்&amp;nbsp; Optional Parameter களாக இருந்தாலும் கூட பிரச்சினை எதுவும் கிடையாது.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;நிபந்தனைகள்&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Optional Parameter ருக்கு அடுத்து வலப்புறத்தில் எந்தவொரு கட்டாய parameter ரும் இருக்கக்கூடாது.&lt;br /&gt;&lt;br /&gt;Optional Parameter கள் அனைத்தும் function னில் வலதுபுறத்தில்தான் declare செய்யப்படவேண்டும்.&lt;br /&gt;&lt;br /&gt;Optional Parameter ருக்கு default value ஒன்று கண்டிப்பாக இருக்கவேண்டும்.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;பிரச்சினைகளும் தீர்வுகளும்&amp;nbsp;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;ஒரு procedure ரை call செய்யும் போது அதில் இருக்கும் அத்தனை parameter ருக்குமான input களையும் அதே வரிசைப்படி கொடுக்கவேண்டும் என்பதில் உள்ள பிரச்சினைகளும் அதற்கான தீர்வுகளும்.&lt;br /&gt;&lt;br /&gt;1) வரிசைப்படிதான் அனுப்ப வேண்டுமா? மாற்றி அனுப்பமுடியாதா?&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;வரிசை மாற்றியும் அனுப்பலாம்.&amp;nbsp;இதற்கு Named Arguments தீர்வாக அமைந்ததை கண்டோம்.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;2) கட்டாயம் அனுப்பித்தான் ஆகவேண்டுமா? விதிவிலக்கு இல்லையா?&lt;/div&gt;
  993. &lt;div style=&quot;text-align: justify;&quot;&gt;
  994. &lt;span style=&quot;color: blue;&quot;&gt;Value வை அனுப்பாமலும் இருக்கலாம். இதற்கு Optional Parameters தீர்வாக அமைந்ததை கண்டோம்.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;இறைவன் நாடினால் அடுத்த பாடத்தில்&amp;nbsp;Pass by value, Pass by reference பற்றி பார்ப்போம்.&lt;/div&gt;
  995. &lt;/div&gt;
  996. &lt;/div&gt;
  997. &lt;/div&gt;
  998. </content><link rel='replies' type='application/atom+xml' href='http://tamilprogramminng.blogspot.com/feeds/7407587863393098644/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tamilprogramminng.blogspot.com/2013/08/named-and-optional-arguments.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3691376985285892436/posts/default/7407587863393098644'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3691376985285892436/posts/default/7407587863393098644'/><link rel='alternate' type='text/html' href='http://tamilprogramminng.blogspot.com/2013/08/named-and-optional-arguments.html' title='Named and Optional Arguments என்றால் என்ன?'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3691376985285892436.post-4352366461774362411</id><published>2013-08-07T20:55:00.003-07:00</published><updated>2013-08-07T20:55:34.365-07:00</updated><title type='text'>Parameters or Arguments என்றால் என்ன?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
  999. &lt;div class=&quot;post-body entry-content&quot; id=&quot;post-body-8505527633362985046&quot; itemprop=&quot;articleBody&quot; style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; position: relative; width: 606px;&quot;&gt;
  1000. &lt;div dir=&quot;ltr&quot; trbidi=&quot;on&quot;&gt;
  1001. &lt;div style=&quot;text-align: center;&quot;&gt;
  1002. &lt;br /&gt;&lt;/div&gt;
  1003. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1004. முந்தைய பாகத்தில்&amp;nbsp;subroutine பற்றி பார்த்தோம் அல்லவா அதன் தொடர்ச்சியாக parameter என்றால் என்னவென்று பார்ப்போம்.&lt;/div&gt;
  1005. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1006. &lt;br /&gt;&lt;/div&gt;
  1007. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1008. &lt;b&gt;Parameters என்றால் என்ன?&lt;/b&gt;&lt;/div&gt;
  1009. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1010. &lt;br /&gt;&lt;/div&gt;
  1011. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1012. ஒரு procedure இயங்குவதற்கு input ஆக சிலவற்றை கொடுக்க நேரிடலாம். அத்தகைய input களை parameters என்றும் arguments என்றும் குறிப்பிடுவார்கள்.&lt;/div&gt;
  1013. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1014. &lt;a href=&quot;&quot; name=&quot;more&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;b&gt;Parameter இல்லாமல் procedure எழுதமுடியுமா?&lt;/b&gt;&lt;/div&gt;
  1015. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1016. &lt;br /&gt;&lt;/div&gt;
  1017. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1018. முடியும். ஆனால் அந்த procedure&amp;nbsp; எப்போதும் ஒரே மாதிரியாகவே செயல்படும். ஒருவேளை நமது தேவைக்கேற்ற மாதிரி அந்த procedure செயல்படவேண்டுமானால் அதற்கு parameter அவசியம்.&lt;/div&gt;
  1019. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1020. &lt;br /&gt;&lt;/div&gt;
  1021. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1022. அதாவது நாம் என்ன செய்யசொல்கிறோம் என்பதை கவனித்து அதன்படி ஒரு Procedure செயல்படவேண்டுமென்றால் நாம் எதையாவது சொல்லவேண்டும். அந்த எதையாவதுதான் parameter ஆகும்.&lt;/div&gt;
  1023. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1024. &lt;br /&gt;&lt;/div&gt;
  1025. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1026. &lt;b&gt;Procedure without parameter உதாரணம் :&lt;/b&gt;&lt;/div&gt;
  1027. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1028. &lt;br /&gt;&lt;/div&gt;
  1029. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1030. உங்கள் வீட்டில் காபி பிளாஸ்க் இருக்கும்தானே? அதில் அம்மா காபியை ஊற்றிவைத்திருப்பார்கள். எப்பொழுது தேவையோ அப்பொழுது அதிலிருந்து காபியை எடுத்துக்கொள்ள முடியும். அதாவது எத்தனை தடவை நீங்கள் கேட்டாலும் உள்ளேயிருக்கும் ஒரேயொரு காபியைத்தவிர வேறொன்றையும் அது தராது. இது procedure or function without parameter ருக்கும் பொருந்தும்.&amp;nbsp;&lt;/div&gt;
  1031. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1032. &lt;br /&gt;&lt;/div&gt;
  1033. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1034. &lt;br /&gt;&lt;/div&gt;
  1035. &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  1036. &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2HGXWQBEJkw01FwayTcyBsPNI7Gc9rMPrq5n9PFaJtvKxxwmgw3a-Qa701kjGJ1ywi0Tz2u0d9CuRlGXIlddOeMtU0ugUniSGuDdzvqAxNIecLmu3xE_l4i84_F7TOOqKkKQ9MQ8tAKbC/s1600/procedure_without_parameter_example.jpg&quot; imageanchor=&quot;1&quot; style=&quot;color: #7d181e; margin-left: 1em; margin-right: 1em; text-decoration: none;&quot;&gt;&lt;img alt=&quot;function without parameter, procedure without parameter, programming guide&quot; border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2HGXWQBEJkw01FwayTcyBsPNI7Gc9rMPrq5n9PFaJtvKxxwmgw3a-Qa701kjGJ1ywi0Tz2u0d9CuRlGXIlddOeMtU0ugUniSGuDdzvqAxNIecLmu3xE_l4i84_F7TOOqKkKQ9MQ8tAKbC/s320/procedure_without_parameter_example.jpg&quot; style=&quot;-webkit-box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 20px; background-color: white; background-position: initial initial; background-repeat: initial initial; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; border-top-left-radius: 5px; border-top-right-radius: 5px; border: 1px solid rgb(204, 204, 204); box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 20px; padding: 8px; position: relative;&quot; title=&quot;&quot; width=&quot;256&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
  1037. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1038. &lt;/div&gt;
  1039. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1040. &lt;br /&gt;&lt;/div&gt;
  1041. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1042. &lt;div&gt;
  1043. procedure CoffeeMaker;&lt;/div&gt;
  1044. &lt;div&gt;
  1045. begin&lt;/div&gt;
  1046. &lt;div&gt;
  1047. &amp;nbsp; print &#39;My Name Is Coffee Maker&#39;;&lt;/div&gt;
  1048. &lt;div&gt;
  1049. &amp;nbsp; print &#39;I can make coffee only&#39;;&lt;/div&gt;
  1050. &lt;div&gt;
  1051. &amp;nbsp; print &#39;If you press 1000 times also, i cannot give you anything other than coffee&#39;&lt;/div&gt;
  1052. &lt;div&gt;
  1053. &amp;nbsp; print &#39;If you want your favorite drink. Please use CoffeMakerWithParameter&#39;&lt;/div&gt;
  1054. &lt;div&gt;
  1055. end;&lt;/div&gt;
  1056. &lt;div&gt;
  1057. &lt;br /&gt;மேலே உதாரணத்தில் உள்ள CoffeeMaker என்கிற procedure எந்த input டையும் பெறாமல் ஒரே மாதிரியான வேலையையே செயல்படுத்தும். உங்களுடைய தேவையும் இதுதான் என்றால் இப்படி எழுதி பயன்படுத்திக் கொள்ளலாம்.&lt;/div&gt;
  1058. &lt;br /&gt;&lt;b&gt;Procedure with parameter உதாரணம் :&lt;/b&gt;&lt;/div&gt;
  1059. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1060. &lt;br /&gt;&lt;/div&gt;
  1061. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1062. வெளியே எங்காவது போயிருக்கும் போது காபி மெஷின் உங்கள் கண்ணில் பட்டிருக்குமே? அதை கவனித்திருக்கிறீர்களா? அதினுள்ளே பால், தண்ணீர், சர்க்கரை, காபி தூள், டீ தூள் என்று எல்லாவற்றையும் தனித்தனியாக வைத்திருப்பார்கள். அத்துடன் உங்களது விருப்பத்தை தெரிவிக்க படங்களுடனோ அல்லது பெயர்களுடனோ கூடிய பல பொத்தான்களையும் வைத்திருப்பார்கள். எந்த பொத்தானை நீங்கள் அழுத்துகிறீர்களோ அதற்குரிய பானம் கிடைக்கும். இது procedure or function with parameter ருக்கும் பொருந்தும்.&lt;/div&gt;
  1063. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1064. &lt;br /&gt;&lt;/div&gt;
  1065. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1066. உங்கள் விருப்பத்தை தெரிவிக்க உள்ள பொத்தான்களே&amp;nbsp; parameter ஆகும்.&lt;/div&gt;
  1067. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1068. &lt;br /&gt;&lt;/div&gt;
  1069. &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  1070. &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJyBKxwXlXK5aum95SWQ8JSy55DqkedPgcXZz4e1sdBwZ1Yt-TZJGDL0aTRY4_SUrHnbK7OuWEe5RryF7W4xhauGAS9P4wigA9fGuqapGSdKrpwypGzW7cZfP83J9wX8Szdwp4jY70WZMH/s1600/procedure_with_parameter.jpg&quot; imageanchor=&quot;1&quot; style=&quot;color: #7d181e; margin-left: 1em; margin-right: 1em; text-decoration: none;&quot;&gt;&lt;img alt=&quot;function with parameters, procedure with parameter&quot; border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJyBKxwXlXK5aum95SWQ8JSy55DqkedPgcXZz4e1sdBwZ1Yt-TZJGDL0aTRY4_SUrHnbK7OuWEe5RryF7W4xhauGAS9P4wigA9fGuqapGSdKrpwypGzW7cZfP83J9wX8Szdwp4jY70WZMH/s320/procedure_with_parameter.jpg&quot; style=&quot;-webkit-box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 20px; background-color: white; background-position: initial initial; background-repeat: initial initial; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; border-top-left-radius: 5px; border-top-right-radius: 5px; border: 1px solid rgb(204, 204, 204); box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 20px; padding: 8px; position: relative;&quot; title=&quot;&quot; width=&quot;305&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
  1071. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1072. &lt;br /&gt;&lt;/div&gt;
  1073. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1074. &lt;br /&gt;&lt;/div&gt;
  1075. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1076. procedure CoffeMakerWithParameter (YourOption : String);&lt;/div&gt;
  1077. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1078. begin&lt;/div&gt;
  1079. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1080. &amp;nbsp; print &#39;My Name Is Coffee Maker&#39;;&lt;/div&gt;
  1081. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1082. &amp;nbsp; print &#39;I can make varieties of coffee and tea&#39;;&lt;/div&gt;
  1083. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1084. &amp;nbsp; print &#39;You asked - &#39; + YourOption;&lt;/div&gt;
  1085. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1086. &amp;nbsp; print &#39;Your drink is ready. Thank you&#39;;&lt;/div&gt;
  1087. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1088. end;&lt;/div&gt;
  1089. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1090. &lt;br /&gt;&lt;/div&gt;
  1091. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1092. &lt;div&gt;
  1093. மேலே உதாரணத்தில் உள்ள CoffeMakerWithParameter என்கிற procedure ஒரு input டை பெற்று அதற்கு தகுந்த வேலையை செயல்படுத்தும். உங்களுடைய ஒரு procedure பல்வேறு நோக்கங்களுக்காக பயன்படவேண்டுமென்றால் இப்படி எழுதி பயன்படுத்திக் கொள்ளலாம்.&lt;br /&gt;&lt;br /&gt;சரி வாங்க உங்களுக்கு விருப்பமான காபி சாப்பிட்டுக்கிட்டே பாடத்தையும் படிக்கலாம். கீழே உள்ள main procedure ரிலிருந்து நாம் எழுதிய இரண்டு procedure களையும் call செய்து பார்ப்போம்.&lt;/div&gt;
  1094. &lt;div&gt;
  1095. &lt;br /&gt;procedure Main;&lt;/div&gt;
  1096. &lt;/div&gt;
  1097. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1098. begin&lt;/div&gt;
  1099. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1100. &amp;nbsp; --next code will call procedure without parameter&lt;/div&gt;
  1101. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1102. &amp;nbsp; CoffeeMaker;&lt;/div&gt;
  1103. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1104. &amp;nbsp; --again coffee only&lt;/div&gt;
  1105. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1106. &amp;nbsp; CoffeeMaker;&lt;/div&gt;
  1107. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1108. &lt;br /&gt;&lt;/div&gt;
  1109. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1110. &amp;nbsp; --next code will call procedure with parameter&lt;/div&gt;
  1111. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1112. &amp;nbsp; CoffeeMakerWithParameter (&#39;Coffee&#39;) ;&lt;/div&gt;
  1113. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1114. &lt;br /&gt;&lt;/div&gt;
  1115. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1116. &amp;nbsp; --i can order any variety&lt;/div&gt;
  1117. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1118. &amp;nbsp; CoffeeMakerWithParameter (&#39;BlackCoffee&#39;) ;&lt;/div&gt;
  1119. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1120. &lt;br /&gt;&lt;/div&gt;
  1121. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1122. &amp;nbsp; CoffeeMakerWithParameter (&#39;CoffeeWithMilk&#39;) ;&lt;/div&gt;
  1123. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1124. &lt;br /&gt;&lt;/div&gt;
  1125. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1126. &amp;nbsp; CoffeeMakerWithParameter (&#39;CoffeeWithout Sugar&#39;) ;&lt;/div&gt;
  1127. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1128. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;-- this is wrong. Parameter is missing&lt;/span&gt;&lt;br /&gt;&lt;div&gt;
  1129. &lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; CoffeeMakerWithParameter () ;&lt;/span&gt;&lt;/div&gt;
  1130. &lt;div&gt;
  1131. &lt;br /&gt;&lt;/div&gt;
  1132. &lt;/div&gt;
  1133. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1134. end;&lt;/div&gt;
  1135. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1136. &lt;br /&gt;&lt;/div&gt;
  1137. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1138. &lt;b&gt;Formal parameter vs Actual parameter :&lt;/b&gt;&lt;/div&gt;
  1139. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1140. &lt;br /&gt;&lt;/div&gt;
  1141. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1142. Formal parameter என்பது procedure definition னில் இருப்பது. அதாவது ஒரு procedure ரையோ அல்லது ஒரு function னையோ declare செய்யும்போது இன்னன்ன parameter இதற்கு தேவை என்று குறிப்பிடுவது Formal parameter ஆகும்.&lt;/div&gt;
  1143. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1144. &lt;br /&gt;&lt;/div&gt;
  1145. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1146. procedure CoffeMakerWithParameter (YourOption : String);&lt;br /&gt;&lt;br /&gt;இது procedure declaration ஆகும். இங்கே YourOption என்பது formal parameter ஆகும்.&lt;/div&gt;
  1147. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1148. &lt;br /&gt;&lt;/div&gt;
  1149. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1150. Actual parameter என்பது procedure ரையோ அல்லது function னையோ call செய்யும்போது நாம் கொடுக்கும் input value வாகும்.&lt;/div&gt;
  1151. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1152. &lt;br /&gt;&lt;/div&gt;
  1153. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1154. &amp;nbsp; CoffeeMakerWithParameter (&#39;BlackCoffee&#39;) ;&lt;/div&gt;
  1155. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1156. &lt;br /&gt;&lt;/div&gt;
  1157. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1158. &amp;nbsp; CoffeeMakerWithParameter (&#39;CoffeeWithMilk&#39;) ;&lt;/div&gt;
  1159. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1160. &lt;br /&gt;&lt;/div&gt;
  1161. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1162. &amp;nbsp; CoffeeMakerWithParameter (&#39;CoffeeWithout Sugar&#39;) ;&lt;/div&gt;
  1163. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1164. &lt;br /&gt;&lt;/div&gt;
  1165. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1166. இங்கே&lt;br /&gt;&#39;BlackCoffee&#39;&lt;/div&gt;
  1167. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1168. &#39;CoffeeWithMilk&#39;&lt;/div&gt;
  1169. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1170. &#39;CoffeeWithout Sugar&#39; முதலியவை actual parameter ஆகும்.&lt;/div&gt;
  1171. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1172. &lt;br /&gt;ஒரு function / procedure ரில் எத்தனை parameter வேண்டுமானாலும் இருக்கலாம். என்ன! அந்த procedure ரை call செய்யும் போது அத்தனை parameter ருக்குமான input களையும் அதே வரிசைப்படி கொடுக்கவேண்டும். இல்லையானால் error message வரும் அல்லது procedure எதிர்பார்த்தபடி வேலைசெய்யாது. ஆனால் சில programming language ல் இந்த பிரச்சினைக்கும் ஒரு தீர்வு இருக்கிறது. அது என்னவென்று அடுத்து பார்ப்போம்.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;
  1173. &lt;/div&gt;
  1174. &lt;/div&gt;
  1175. &lt;/div&gt;
  1176. </content><link rel='replies' type='application/atom+xml' href='http://tamilprogramminng.blogspot.com/feeds/4352366461774362411/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tamilprogramminng.blogspot.com/2013/08/parameters-or-arguments.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3691376985285892436/posts/default/4352366461774362411'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3691376985285892436/posts/default/4352366461774362411'/><link rel='alternate' type='text/html' href='http://tamilprogramminng.blogspot.com/2013/08/parameters-or-arguments.html' title='Parameters or Arguments என்றால் என்ன?'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2HGXWQBEJkw01FwayTcyBsPNI7Gc9rMPrq5n9PFaJtvKxxwmgw3a-Qa701kjGJ1ywi0Tz2u0d9CuRlGXIlddOeMtU0ugUniSGuDdzvqAxNIecLmu3xE_l4i84_F7TOOqKkKQ9MQ8tAKbC/s72-c/procedure_without_parameter_example.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3691376985285892436.post-2590190385518829736</id><published>2013-08-07T20:54:00.002-07:00</published><updated>2013-08-07T20:54:59.581-07:00</updated><title type='text'>Procedures பற்றிய விரிவான விளக்கம்</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
  1177. &lt;div class=&quot;post-body entry-content&quot; id=&quot;post-body-2860630491299720669&quot; itemprop=&quot;articleBody&quot; style=&quot;line-height: 1.4; position: relative; width: 606px;&quot;&gt;
  1178. &lt;div dir=&quot;ltr&quot; trbidi=&quot;on&quot;&gt;
  1179. &lt;div style=&quot;text-align: center;&quot;&gt;
  1180. &lt;br /&gt;&lt;/div&gt;
  1181. &lt;div style=&quot;text-align: center;&quot;&gt;
  1182. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1183. முந்தைய பாகத்தில்&amp;nbsp;subroutine னுடைய பயன்களை அறிந்துகொண்டோம். இந்த பாகத்தில் இன்னும் விவரமாக பார்ப்போம்.&lt;br /&gt;&lt;br /&gt;Procedures / functions / sub-program / subroutine&amp;nbsp; என்று எப்படி குறிப்பிட்டாலும் அதனுடைய நோக்கம் நமது புரோகிராமை சிறு சிறு துண்டுகளாக பிரிப்பது என்பதால் குழப்பமடையத் தேவையில்லை.&lt;br /&gt;&lt;br /&gt;இதில்&amp;nbsp;sub-program / subroutine என்று தனியாக எதுவும் கிடையாது. ஆனால் Procedure ரையோ அல்லது function னையோ குறிப்பிட இவை பயன்படுத்தப்படுகிறது. ஆகையால்procedure மற்றும் function னை பற்றி தெரிந்துகொண்டாலே போதுமானது.&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;&quot; name=&quot;more&quot;&gt;&lt;/a&gt;&lt;b&gt;Procedure என்றால் என்ன?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;ஒரு செயலை எப்படி செயல்படுத்துவது என்பது பற்றிய கட்டளைகளை உள்ளடக்கியதை procedure எனலாம்.&lt;br /&gt;&lt;br /&gt;நமது புரோகிராமில் ஒரு சில கட்டளைகளை திரும்ப திரும்ப செயல்படுத்த நேரிட்டால் அவற்றை ஒரு procedure ஆகவோ அல்லது function ஆகவோ எழுதிக்கொண்டு தேவைப்படும் இடத்தில் call செய்து கொள்ளலாம்.&lt;br /&gt;&lt;br /&gt;இந்த procedure ஐ நாம் call செய்தால் தனக்குள் இருக்கும் கட்டளைகளை அது செயல்படுத்தும்.&lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;b&gt;Procedure Syntax&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;procedure procedure_name&lt;/b&gt;&amp;nbsp;(optional parameters)&lt;br /&gt;begin&lt;br /&gt;-- procedure body..&lt;br /&gt;-- mention what procedure to do&lt;br /&gt;end;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;b&gt;Function Syntax&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;function function_name&lt;/b&gt;&amp;nbsp;(optional parameters) :&amp;nbsp;&lt;b&gt;return_type&lt;/b&gt;&lt;br /&gt;begin&lt;br /&gt;-- body of function&lt;br /&gt;--&amp;nbsp;mention what function to do&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;b&gt;return&lt;/b&gt;&amp;nbsp;something;&lt;br /&gt;end;&lt;br /&gt;&lt;br /&gt;மேற்கண்ட&amp;nbsp;இரண்டிற்குமிடையே உள்ள வித்தியாசம் என்னவென்று தெரிகிறதா?&lt;br /&gt;&lt;br /&gt;ஆம் return என்பது function னில் இருக்கிறது ஆனால் procedure ரில் இல்லை.&lt;br /&gt;&lt;br /&gt;Procedure ரும் function னும் ஒரே மாதிரி செயல்பட்டாலும் Procedure எந்த value வையும் return செய்யாது. ஆனால் function இறுதியில் ஒரு value வை return&amp;nbsp; செய்யும்.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Procedure இல்லாமல் program எழுத முடியுமா?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;முடியும். சிறிய program மாக இருந்தால் பிரச்சினை இருக்காது. ஆனால் பெரிய Program மாக இருந்தால் procedure ரை தவிர்க்கவே முடியாது.&lt;br /&gt;&lt;br /&gt;ஒருவர் தன்னுடைய கடைக்கு ஒரு program வேண்டுமென்று கேட்கிறார். அவருடைய கடையை நிர்வகிக்க என்னென்னவெல்லாம் தேவைப்படும் என்று யோசனை செய்ததில் cash invoice, credit invoice, purchase invoice, cash receipt, cash payment, voucher என்று பட்டியல் தெரியவந்தது.&amp;nbsp;Sample ளுக்கு இரண்டு format டுகளை தயாரித்து அவரிடம் நம்ம programmer காண்பிக்கிறார். ஆஹா அருமை என்று பாராட்ட அவரும் புரோகிராம் எழுதுகிறார்.&lt;br /&gt;&lt;br /&gt;கீழே உள்ள இரு படங்களை பார்க்கவும்.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  1184. &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgP3S-L_4tXDzeANOtAbzUL_Soym4tonPBDER-dkWzdXicuEkMqvuVuUunswRUbCmyE_4Jdq7mByIi6s3zWKiA-8RNnIEbWhX4XGp0LQltOfroHlySCEg5jbVTYEb91UF4xp0Rq_IvR87pl/s1600/cash+invoice.jpg&quot; imageanchor=&quot;1&quot; style=&quot;color: #7d181e; margin-left: 1em; margin-right: 1em; text-decoration: none;&quot;&gt;&lt;img alt=&quot;sample cash invoice, karkandu, tamil programming guide&quot; border=&quot;0&quot; height=&quot;303&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgP3S-L_4tXDzeANOtAbzUL_Soym4tonPBDER-dkWzdXicuEkMqvuVuUunswRUbCmyE_4Jdq7mByIi6s3zWKiA-8RNnIEbWhX4XGp0LQltOfroHlySCEg5jbVTYEb91UF4xp0Rq_IvR87pl/s320/cash+invoice.jpg&quot; style=&quot;-webkit-box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 20px; background-color: white; background-position: initial initial; background-repeat: initial initial; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; border-top-left-radius: 5px; border-top-right-radius: 5px; border: 1px solid rgb(204, 204, 204); box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 20px; padding: 8px; position: relative;&quot; title=&quot;&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
  1185. &lt;div style=&quot;text-align: center;&quot;&gt;
  1186. Sample Cash Invoice&lt;/div&gt;
  1187. &lt;div style=&quot;text-align: center;&quot;&gt;
  1188. &lt;br /&gt;&lt;/div&gt;
  1189. &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  1190. &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2uURAQ32Imxwh51-YWqA19vFok81gVM3sMbMqvV8MlR3akQ3i9PoTQXhQhinYrRtNEakChmNd53ErViDBlQIn-6Fs1MdxZ2lViuuSlQmrGBauk9lG0506vM67qGzUaZwCjPBHFV-bNFzZ/s1600/credit+invoice.jpg&quot; imageanchor=&quot;1&quot; style=&quot;color: #7d181e; margin-left: 1em; margin-right: 1em; text-decoration: none;&quot;&gt;&lt;img alt=&quot;sample credit invoice, procedures vs functions&quot; border=&quot;0&quot; height=&quot;303&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2uURAQ32Imxwh51-YWqA19vFok81gVM3sMbMqvV8MlR3akQ3i9PoTQXhQhinYrRtNEakChmNd53ErViDBlQIn-6Fs1MdxZ2lViuuSlQmrGBauk9lG0506vM67qGzUaZwCjPBHFV-bNFzZ/s320/credit+invoice.jpg&quot; style=&quot;-webkit-box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 20px; background-color: white; background-position: initial initial; background-repeat: initial initial; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; border-top-left-radius: 5px; border-top-right-radius: 5px; border: 1px solid rgb(204, 204, 204); box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 20px; padding: 8px; position: relative;&quot; title=&quot;&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
  1191. &lt;div style=&quot;text-align: center;&quot;&gt;
  1192. Sample Credit Invoice&lt;/div&gt;
  1193. &lt;div&gt;
  1194. &lt;br /&gt;&lt;/div&gt;
  1195. மேற்கண்ட இரண்டு format களையும் print செய்ய எப்படி code எழுதியுள்ளார் என்று பார்ப்போம்.&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  1196. &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGq0Rb1RawSLn_DBlkKOMiOX99pvxZNRsCbeh9eP2lrNFzCUvQ6RbAQ7ImYKYnL39NzF0p5JQg_SZbnyrHo4Fah860pLCw3rQo0LdKKYRJhhRDQeihWrOMligXVs7xi2laI-kFD5tyVcYd/s1600/program+without+procedure.jpg&quot; imageanchor=&quot;1&quot; style=&quot;color: #7d181e; margin-left: 1em; margin-right: 1em; text-decoration: none;&quot;&gt;&lt;img alt=&quot;program without procedures, procedure example, தமிழ் கம்ப்யுட்டர்&quot; border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGq0Rb1RawSLn_DBlkKOMiOX99pvxZNRsCbeh9eP2lrNFzCUvQ6RbAQ7ImYKYnL39NzF0p5JQg_SZbnyrHo4Fah860pLCw3rQo0LdKKYRJhhRDQeihWrOMligXVs7xi2laI-kFD5tyVcYd/s320/program+without+procedure.jpg&quot; style=&quot;-webkit-box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 20px; background-color: white; background-position: initial initial; background-repeat: initial initial; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; border-top-left-radius: 5px; border-top-right-radius: 5px; border: 1px solid rgb(204, 204, 204); box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 20px; padding: 8px; position: relative;&quot; title=&quot;&quot; width=&quot;168&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
  1197. மேலோட்டமாக பார்க்கும் போது code சரியாக இருப்பது போல தோன்றினாலும்என்னென்ன&amp;nbsp;பிரச்சினைகள் இதிலுள்ளன என்று பார்ப்போமா?&lt;br /&gt;&lt;ol&gt;
  1198. &lt;li style=&quot;margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;இரண்டு invoice களிலும் company யினுடைய பெயரை பிரிண்ட் செய்கிறார். இதற்காக இரண்டு invoice களிலும் தனித்தனியாக code எழுதியுள்ளார்.&lt;/li&gt;
  1199. &lt;li style=&quot;margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;அதேபோல இரண்டு invoice களிலும் footer note print செய்ய தனித்தனியாக code எழுதியுள்ளார்.&amp;nbsp;&lt;/li&gt;
  1200. &lt;li style=&quot;margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;இப்படி ஒரே மாதிரியான code ஒரு புரோகிராமில் திரும்பத்திரும்ப பயன்படுத்துவது code redundancy யை உண்டாக்கும். அதென்ன redundancy? அதாங்க duplicate code.&lt;/li&gt;
  1201. &lt;/ol&gt;
  1202. இப்படியாக 10 வகையான screen களை design செய்து program செய்துவிட்டபின்பு கடைக்காரருக்கு ஒரு யோசனை தோன்றுகிறது. ஏம்ப்பா தம்பி கடை டெலிபோன் நம்பர் தலைப்புல இருந்தா நல்லாயிருக்குமே அதை விட்டுட்டீங்களேன்னு ஒரே போடு போட, நம்மாளும் சரிங்கன்னு போய் மாற்றிவிடுகிறார்.&amp;nbsp;&lt;/div&gt;
  1203. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1204. &lt;br /&gt;பின்பு பார்த்தால் 10 invoice ல நான்குல போன் நம்பரை காணோம். என்னாயிற்றுன்னு guess பண்ண முடியுதா? ஆம். அதேதான்... நம்மாளு எல்லா invoice லேயும் மாற்ற மறந்துட்டார். Code redundancy இருந்தால் இந்த தவறு கண்டிப்பாக நிகழும்.&lt;/div&gt;
  1205. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1206. &lt;br /&gt;இப்படியாக ஒவ்வொரு modification செய்யும்போதும் ஏதாவதொரு தவறு எங்காவது நிகழத்தான் செய்யும்.&lt;/div&gt;
  1207. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1208. &lt;/div&gt;
  1209. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1210. &lt;br /&gt;அப்போ இதை தவிர்க்க வழியே கிடையாதான்னு நீங்கள் நினைக்கலாம். வழி இருக்கிறது வாங்க procedure&amp;nbsp;இதற்கு&amp;nbsp;எப்படி பயன்படுதுன்னு பார்க்கலாம்.&lt;/div&gt;
  1211. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1212. &lt;/div&gt;
  1213. &lt;div class=&quot;separator&quot; style=&quot;background-color: #fefdfa; clear: both; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;
  1214. &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzmhL-Rg7FitPUZgDA_kQ6wkL0Z6NMwDZ1F7FJDp88QLMkwsrjcOvaPuRBdrEZWZUFcGq8liKreBzpHBFSwX_F7vkUOo5Hvq2z37M_1cdrwL5GTSt4tAcRMP9pDQ5eNMkzGr52umwpuj4H/s1600/program+with+procedure.jpg&quot; imageanchor=&quot;1&quot; style=&quot;color: #7d181e; margin-left: 1em; margin-right: 1em; text-decoration: none;&quot;&gt;&lt;img alt=&quot;program with procedure or function, procedures, functions, தமிழ் கம்ப்யூட்டர்&quot; border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzmhL-Rg7FitPUZgDA_kQ6wkL0Z6NMwDZ1F7FJDp88QLMkwsrjcOvaPuRBdrEZWZUFcGq8liKreBzpHBFSwX_F7vkUOo5Hvq2z37M_1cdrwL5GTSt4tAcRMP9pDQ5eNMkzGr52umwpuj4H/s320/program+with+procedure.jpg&quot; style=&quot;-webkit-box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 20px; background-color: white; background-position: initial initial; background-repeat: initial initial; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; border-top-left-radius: 5px; border-top-right-radius: 5px; border: 1px solid rgb(204, 204, 204); box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 20px; padding: 8px; position: relative;&quot; title=&quot;&quot; width=&quot;218&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
  1215. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1216. &lt;/div&gt;
  1217. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1218. இங்கே இரண்டு procedure கள்&amp;nbsp; எழுதப்பட்டுள்ளன. இரண்டையும் எத்தனை தடவை வேண்டுமானாலும் call செய்துகொள்ளலாம். ஒரு Procedure எப்படி வேலை செய்கிறதென்பதும் அம்புக்குறி மூலம் விளக்கப்பட்டுள்ளது.&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Void function&amp;nbsp;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;C, C++ முதலிய&amp;nbsp;Programming Language களில் Procedure&amp;nbsp; என்று தனியாக எதுவும் இருக்காது. Function மட்டும் தான் இருக்கும். இருப்பினும் அதை Procedure போல வேலை செய்ய வைக்கலாம். எப்படி என்கிறீர்களா? Void Function என்று எழுதிக்கொள்ளலாம். Void என்றால் Function which does not return anything என்று அர்த்தம். அதாங்க Procedure.&lt;br /&gt;&lt;br /&gt;Void Function = Procedure&amp;nbsp; (இரண்டும் சமம்)&lt;/div&gt;
  1219. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1220. &lt;br /&gt;&lt;b&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;b&gt;இதனால் கிடைக்கும் பயன்கள்&lt;/b&gt;:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
  1221. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1222. &lt;ol&gt;
  1223. &lt;li style=&quot;margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;&lt;b&gt;Code reusability&lt;/b&gt;&amp;nbsp;- ஒரே code ஐ பல இடங்களில் பயன்படுத்திக்கொள்ள முடிகிறது.&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/li&gt;
  1224. &lt;li style=&quot;margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;&lt;b&gt;Avoid redundancy&lt;/b&gt;&amp;nbsp;- ஒரே code ஐ பல தடவை duplicate ஆக திரும்பத்திரும்ப எழுதுவது தவிர்க்கப்படுகிறது.&lt;/li&gt;
  1225. &lt;li style=&quot;margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;&lt;b&gt;Reduce complexity&lt;/b&gt;&amp;nbsp;- நமது புரோகிராமை பிரித்து subroutine களாக எழுதுவதால் புரிந்து கொள்வது (பராமரிப்பது) எளிதாகிறது.&amp;nbsp;&amp;nbsp;&lt;/li&gt;
  1226. &lt;/ol&gt;
  1227. &lt;/div&gt;
  1228. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1229. இப்போ சொல்லுங்க, கடைக்காரர் தலைப்பிலேயோ அல்லது கீழ்ப்புறத்திலோ எங்கு மாற்றம் செய்ய விரும்பினாலும் ஒரு இடத்தில் மாற்றம் செய்தால் அது அனைத்து இடங்களிலும் பிரதிபலிக்கும்தானே?.&lt;/div&gt;
  1230. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1231. &lt;br /&gt;&lt;/div&gt;
  1232. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1233. என்ன புரிந்ததா ?&lt;br /&gt;&lt;br /&gt;நல்லது...இனி&lt;/div&gt;
  1234. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1235. &lt;ul style=&quot;line-height: 1.4; list-style-image: initial; list-style-position: initial; margin: 0.5em 0px; padding: 0px 2.5em;&quot;&gt;
  1236. &lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0.25em 0px;&quot;&gt;Procedure with parameters&lt;/li&gt;
  1237. &lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0.25em 0px;&quot;&gt;Named parameters&lt;/li&gt;
  1238. &lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0.25em 0px;&quot;&gt;Optional parameters&lt;/li&gt;
  1239. &lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0.25em 0px;&quot;&gt;Pass by value&lt;/li&gt;
  1240. &lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0.25em 0px;&quot;&gt;Pass by reference&lt;/li&gt;
  1241. &lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0.25em 0px;&quot;&gt;Built-in function&lt;/li&gt;
  1242. &lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0.25em 0px;&quot;&gt;User defined function&lt;/li&gt;
  1243. &lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0.25em 0px;&quot;&gt;Variable scope&lt;/li&gt;
  1244. &lt;/ul&gt;
  1245. &lt;/div&gt;
  1246. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1247. என்றால் என்ன என்பதை அடுத்து பார்க்கலாம்.&lt;/div&gt;
  1248. &lt;div&gt;
  1249. &lt;br /&gt;&lt;/div&gt;
  1250. &lt;/div&gt;
  1251. &lt;/div&gt;
  1252. &lt;/div&gt;
  1253. &lt;/div&gt;
  1254. </content><link rel='replies' type='application/atom+xml' href='http://tamilprogramminng.blogspot.com/feeds/2590190385518829736/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tamilprogramminng.blogspot.com/2013/08/procedures.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3691376985285892436/posts/default/2590190385518829736'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3691376985285892436/posts/default/2590190385518829736'/><link rel='alternate' type='text/html' href='http://tamilprogramminng.blogspot.com/2013/08/procedures.html' title='Procedures பற்றிய விரிவான விளக்கம்'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgP3S-L_4tXDzeANOtAbzUL_Soym4tonPBDER-dkWzdXicuEkMqvuVuUunswRUbCmyE_4Jdq7mByIi6s3zWKiA-8RNnIEbWhX4XGp0LQltOfroHlySCEg5jbVTYEb91UF4xp0Rq_IvR87pl/s72-c/cash+invoice.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3691376985285892436.post-2609907517347897525</id><published>2013-08-07T20:52:00.002-07:00</published><updated>2013-08-07T20:52:52.778-07:00</updated><title type='text'>Subroutine என்றால் என்ன?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
  1255. &lt;h3 class=&quot;post-title entry-title&quot; style=&quot;background-color: #fefdfa; color: #d52a33; font-family: Georgia, Utopia, &#39;Palatino Linotype&#39;, Palatino, serif; font-size: 22px; font-weight: normal; margin: 0px; position: relative;&quot;&gt;
  1256. &lt;br /&gt;&lt;/h3&gt;
  1257. &lt;div class=&quot;post-body entry-content&quot; id=&quot;post-body-8441927210340659312&quot; itemprop=&quot;articleBody&quot; style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; position: relative; width: 606px;&quot;&gt;
  1258. &lt;div dir=&quot;ltr&quot; trbidi=&quot;on&quot;&gt;
  1259. &lt;div style=&quot;text-align: center;&quot;&gt;
  1260. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1261. முந்தைய பாகத்தில்&amp;nbsp;loop என்றால் என்னவென்று பார்த்தோம். இனி subroutine என்றால் என்ன? அது எதற்காக பயன்படுகிறது என்பதை பார்ப்போம்.&lt;/div&gt;
  1262. &lt;/div&gt;
  1263. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1264. &lt;div&gt;
  1265. &lt;br /&gt;&lt;/div&gt;
  1266. &lt;div&gt;
  1267. &lt;b&gt;Subroutine என்றால் என்ன?&lt;/b&gt;&lt;/div&gt;
  1268. &lt;div&gt;
  1269. &lt;br /&gt;நாம் எழுதும் புரோகிராமை நமது வசதிக்கேற்ப அல்லது பயன்பாட்டிற்கேற்ப சிறிய சிறிய அளவில் தனித்தயாக - துண்டுகளாக - எழுதுவதை subroutine என்கிறோம்.&amp;nbsp;&amp;nbsp;&lt;/div&gt;
  1270. &lt;div&gt;
  1271. &lt;br /&gt;&lt;a href=&quot;&quot; name=&quot;more&quot;&gt;&lt;/a&gt;இதனால் நமது புரோகிராம் பல சின்ன புரோகிராம்களாக பிரிக்கப்படுகிறது. இதனால் இவற்றை பராமரிப்பதும் எளிதாகிவிடுகிறது.&lt;/div&gt;
  1272. &lt;div&gt;
  1273. &lt;br /&gt;&lt;/div&gt;
  1274. &lt;/div&gt;
  1275. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1276. ஒரு காரியத்திற்காக program ஒன்றை எழுதுகிறோம். அதே காரியம் இன்னொரு இடத்திலும் செய்யவேண்டிய தேவை எழுகிறது. இதற்காக மீண்டும் அதே program மை உட்கார்ந்து எழுதாமல் முன்னர் எழுதிய &amp;nbsp; அதே புரோகிராமை நாம் பயன்படுத்திகொள்ளலாம்.&lt;/div&gt;
  1277. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1278. &lt;/div&gt;
  1279. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1280. &lt;br /&gt;&lt;b&gt;&lt;b&gt;Subroutine&amp;nbsp;&lt;/b&gt;னால் கிடைக்கும் பயன்கள்:&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
  1281. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1282. &lt;/div&gt;
  1283. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1284. &lt;br /&gt;&lt;b&gt;Code reusability&lt;/b&gt;&amp;nbsp;- ஒரே code ஐ பல இடங்களில் பயன்படுத்திக்கொள்ள முடிகிறது.&lt;/div&gt;
  1285. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1286. &lt;/div&gt;
  1287. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1288. &lt;br /&gt;&lt;b&gt;Avoid redundancy&lt;/b&gt;&amp;nbsp;- ஒரே code ஐ பல தடவை duplicate ஆக திரும்பத்திரும்ப எழுதுவது தவிர்க்கப்படுகிறது.&lt;/div&gt;
  1289. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1290. &lt;/div&gt;
  1291. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1292. &lt;br /&gt;&lt;b&gt;Reduce complexity&lt;/b&gt;&amp;nbsp;- நமது புரோகிராமை பிரித்து subroutine களாக எழுதுவதால் புரிந்து கொள்வது (பராமரிப்பது) எளிதாகிறது.&lt;/div&gt;
  1293. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1294. &lt;br /&gt;&lt;/div&gt;
  1295. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1296. நடைமுறை உதாரணம் ஒன்று சொன்னால் எளிதாக விளங்கும். தென்னை மரமேறி தேங்காய் பறிப்பதற்கு ஒருத்தர் ஒரு கருவி செய்து வைத்திருக்கிறார். அவருடைய கொல்லையில் அந்த கருவியை பயன்படுத்தி தேங்காய் பறித்து கொள்கிறார். இதை அந்த ஊர் மக்கள் கேள்விபட்டு தங்கள் கொல்லையிலும் தேங்காய் பறிக்க அவரைக் கூப்பிடுகிறார்கள். அவரும் ஒருவருடைய கொல்லைக்கு போய் உட்கார்ந்து தென்னை மரமேறுவதற்கென ஒரு கருவி செய்தாகனும் என முடிவுசெய்கிறார். கருவியை தயாரிக்க தொடங்கி பல முறை முயற்சிசெய்து சில முறை கீழேயும் விழுந்து அதிலிருந்து பாடம் கற்று ஒருவழியாக அந்த கருவியை தயாரித்து தேங்காய் பறிப்பதற்குள் போதும்போதும் என்றாகிவிட்டது.&lt;/div&gt;
  1297. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1298. &lt;/div&gt;
  1299. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1300. &lt;br /&gt;இதை கேள்விபடும் உங்களுக்கு என்ன தோன்றுகிறது? அடப்பாவி வீட்டுல சூப்பரா ஒரு கருவியை வச்சிக்கிட்டு அதை பயன்படுத்தாம இப்படியே வீட்டுக்கு வீடு போய் கருவி செய்துகிட்டு இருக்கானே! இவனுக்கு என்ன கிறுக்கா புடிச்சிருக்கு என்று நினைப்பீர்களா இல்லையா?&lt;/div&gt;
  1301. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1302. &lt;/div&gt;
  1303. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1304. &lt;br /&gt;இவருக்கு கருவி செய்ய தெரியும் என்றாலும் அதனால் ஏற்படும் விளைவுகள் என்னென்ன?&lt;/div&gt;
  1305. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1306. &lt;/div&gt;
  1307. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1308. &lt;br /&gt;முதன்முதலில் ஒரு கருவியை செய்யும்போது ஏற்பட்ட காலவிரயம் ஒவ்வொருதடவையும் ஏற்படுகிறது.&lt;/div&gt;
  1309. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1310. &lt;/div&gt;
  1311. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1312. &lt;br /&gt;ஒவ்வொரு முறை புதிது புதிதாக செய்வதால் ஒவ்வொரு கருவியிலும் ஏதாவதொரு technical fault ஏற்பட சாத்தியம் உள்ளது.&lt;/div&gt;
  1313. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1314. &lt;/div&gt;
  1315. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1316. &lt;br /&gt;இப்படியே பல கருவிகள் அவன் வீட்டில் சேர ஆரம்பித்தால் நாளை எந்த கருவி நன்றாக வேலை செய்கிறது என்பது தெரியாமல் போய்விட வாய்ப்புண்டு.&lt;/div&gt;
  1317. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1318. &lt;/div&gt;
  1319. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1320. &lt;br /&gt;ஒரு கருவியில் ஏற்பட்ட technical fault ஐ சரிசெய்தாலும் அதே fault ஐ அனைத்து கருவிகளிலிருந்தும் நீக்க முடியும் என்பதற்கு உத்தரவாதம் கிடையாது.&amp;nbsp;&lt;/div&gt;
  1321. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1322. &lt;/div&gt;
  1323. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1324. &lt;br /&gt;இப்படி ஏகப்பட்ட பிரச்சினைகள் இதில் உள்ளன.&lt;/div&gt;
  1325. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1326. &lt;/div&gt;
  1327. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1328. &lt;br /&gt;இவன் சரிப்பட்டு வரமாட்டான் என்று பக்கத்து ஊரிலிருந்து ஒருத்தனை அழைத்து வந்தார்கள். அவன் தன்னுடன் கருவியையும் எடுத்துவந்திருந்தான். அந்த கருவியை பயன்படுத்தி மரமேறி தேங்காய் பறித்தான். ஒவ்வொரு முறையும் ஏதாவதொரு technical fault ஏற்பட்டால் அதை களைவது எப்படி என யோசனை செய்து குறைகளை களைந்து அந்த கருவியை மிகச்சிறந்ததாக மாற்றிவிட்டான். இதனால் இவனுக்கு நேரம் மிச்சமாகியது. வருமானமும் அதிகமானது.&lt;/div&gt;
  1329. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1330. &lt;/div&gt;
  1331. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1332. &lt;br /&gt;ஓய்வு நேரத்தில் அவன் வெவ்வேறு வேலைக்கு தேவைப்படும் இயந்திரங்களை கண்டுபிடிக்க ஆரம்பித்தான்.&lt;/div&gt;
  1333. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1334. &lt;br /&gt;&lt;/div&gt;
  1335. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1336. இரண்டு நபருக்கும் உள்ள வேறுபாடு தெரிகிறதா?&lt;/div&gt;
  1337. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1338. &lt;/div&gt;
  1339. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1340. &lt;br /&gt;தெரிந்தால்தான் உங்களுக்கு code reusability, avoid redundancy, reduce complexity யின் அர்த்தம் புரியும். Subroutine னுடைய தேவையும் புரியும்.&lt;/div&gt;
  1341. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1342. &lt;/div&gt;
  1343. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1344. &lt;br /&gt;இதனை procedures / functions / sub-program / subroutine&amp;nbsp; என்றும் குறிப்பிடுவார்கள். அதைப் பற்றி அடுத்த பாகத்தில் பார்ப்போம்.&lt;/div&gt;
  1345. &lt;/div&gt;
  1346. &lt;/div&gt;
  1347. &lt;/div&gt;
  1348. </content><link rel='replies' type='application/atom+xml' href='http://tamilprogramminng.blogspot.com/feeds/2609907517347897525/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tamilprogramminng.blogspot.com/2013/08/subroutine.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3691376985285892436/posts/default/2609907517347897525'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3691376985285892436/posts/default/2609907517347897525'/><link rel='alternate' type='text/html' href='http://tamilprogramminng.blogspot.com/2013/08/subroutine.html' title='Subroutine என்றால் என்ன?'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3691376985285892436.post-4235513249994285043</id><published>2013-08-07T05:28:00.004-07:00</published><updated>2013-08-07T05:28:53.781-07:00</updated><title type='text'>While Loop பில் பல ரகம்</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
  1349. &lt;div class=&quot;post-body entry-content&quot; id=&quot;post-body-7638801517875399553&quot; itemprop=&quot;articleBody&quot; style=&quot;line-height: 1.4; position: relative; width: 606px;&quot;&gt;
  1350. &lt;div dir=&quot;ltr&quot; trbidi=&quot;on&quot;&gt;
  1351. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: center;&quot;&gt;
  1352. &lt;br /&gt;&lt;/div&gt;
  1353. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1354. முந்தைய பாகத்தில்&amp;nbsp;while loop பானது ஒரு condition true வாக இருக்கும் வரையில் குறிப்பிட்ட statement களை திரும்பத் திரும்ப execute செய்யும் என்பதை பார்த்தோம் அல்லவா? அதனை சற்று நினைவுபடுத்தி பார்த்துவிட்டு மற்றவைகளை பார்ப்போம்.&lt;/div&gt;
  1355. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1356. &lt;br /&gt;&lt;/div&gt;
  1357. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1358. &lt;b&gt;WHILE&amp;nbsp;&lt;/b&gt;this_boolean_condition_is_true&lt;/div&gt;
  1359. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1360. &lt;b&gt;BEGIN&lt;/b&gt;&lt;/div&gt;
  1361. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1362. &amp;nbsp; execute these statements&lt;/div&gt;
  1363. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1364. &amp;nbsp; your statements here&lt;/div&gt;
  1365. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1366. &lt;b&gt;END&lt;/b&gt;&lt;/div&gt;
  1367. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1368. &lt;br /&gt;&lt;/div&gt;
  1369. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1370. இது எவ்வாறு வேலை செய்ததென்று பார்த்தோம்?&lt;/div&gt;
  1371. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1372. &lt;a href=&quot;&quot; name=&quot;more&quot;&gt;&lt;/a&gt;&lt;br /&gt;step 1 : முதலில் this_boolean_condition_is_true என்பது true ஆக இருக்கிறதா? இல்லை false ஆக இருக்கிறதா? என்பது evaluate செய்யப்படுகிறது.&lt;/div&gt;
  1373. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1374. &lt;/div&gt;
  1375. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1376. &lt;br /&gt;step 2 : ஒருவேளை step 1 னுடைய result false ஆக இருந்தால் begin மற்றும் end டுக்கு நடுவில் இருக்கும் statement கள் execute செய்யப்படாது. end டுக்கு அடுத்துள்ள part க்கு control சென்று விடும்.&lt;/div&gt;
  1377. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1378. &lt;/div&gt;
  1379. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1380. &lt;br /&gt;step 3: ஒருவேளை step 1 னுடைய result true ஆக இருந்தால் begin மற்றும் end டுக்கு நடுவில் இருக்கும் statement கள் execute செய்யப்படும். பின்னர் மீண்டும் step 1 க்கு control செல்லும்.&lt;/div&gt;
  1381. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1382. &lt;/div&gt;
  1383. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1384. &lt;br /&gt;&lt;/div&gt;
  1385. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1386. இதில் கவனிக்க வேண்டியது என்னவென்றால் இங்கு condition முதலில் evaluate செய்யப்பட்டு பின்னர் அதன் முடிவுக்கேற்ப statement டுகள் execute செய்யப்படுகின்றன.&lt;/div&gt;
  1387. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1388. &lt;br /&gt;&lt;/div&gt;
  1389. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1390. ஆனால் ஒரு சில சமயங்களில் இதை தலைகீழாக செய்யவேண்டிய சூழ்நிலை ஏற்படலாம். அதாவது statement டுகள் முதலில் execute செய்யப்பட்டு அதன் பின்னர் condition evaluate செய்யப்பட்டு அந்த condition true வாக இருக்கும் வரையில் மீண்டும் அந்த statement களை திரும்பத்திரும்ப execute செய்யவேண்டி வரும்.&lt;/div&gt;
  1391. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1392. &lt;br /&gt;&lt;/div&gt;
  1393. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1394. புரியும்படி சொல்வதானால் முதலில் சில காரியங்களை செய்து அதனால் ஏற்படும் பின்விளைவை ஆராய்ந்து அந்த விளைவுக்கு தக்கவாறு மேற்படி காரியங்களை மீண்டும் தொடர வேண்டுமா வேண்டாமா என்பதை முடிவு செய்யவேண்டி வரும்.&lt;/div&gt;
  1395. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1396. &lt;br /&gt;&lt;/div&gt;
  1397. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1398. உதாரணத்திற்கு, ஒன்றை கேட்டவுடன் உடனே வாங்கித்தரும் பெற்றோரும் உள்ளனர். பல தடவை மீண்டும் மீண்டும் கேட்டால்தான் வாங்கித்தரும் பெற்றோரும் உள்ளனர். அல்லது எத்தனை தடவை கேட்டாலும் வாங்கித்தராமல் இருக்கும் பெற்றோரும் உள்ளனர்.&lt;/div&gt;
  1399. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1400. &lt;br /&gt;&lt;/div&gt;
  1401. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1402. இப்போது உங்களுக்கு ஒரு மோட்டார் சைக்கிள்&amp;nbsp; தேவைப்படுகிறதென்று வைத்துக்கொள்வோம். உங்கள் பெற்றோரிடம் கேட்கிறீர்கள். உடனே வாங்கித்தரவில்லை என்றால் என்ன செய்வீர்கள் திரும்பத்திரும்ப வாங்கிகேட்பீர்கள் தானே?&lt;/div&gt;
  1403. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1404. &lt;br /&gt;&lt;/div&gt;
  1405. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1406. என்ன நடக்கும் என்பதை step by step ப்பாக பார்ப்போம். அப்போதுதான் எளிதில் விளங்கும்.&lt;/div&gt;
  1407. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1408. &lt;br /&gt;&lt;/div&gt;
  1409. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1410. step 1 : அம்மா! மோட்டார் சைக்கிள் எனக்கு வேண்டும். அத்தாவிடம் சொல்லி வாங்கித்தாங்க என்று கேட்கிறீர்கள்&lt;/div&gt;
  1411. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1412. step 2 : அம்மாவும் அத்தாவிடம் கேட்கிறார்&lt;/div&gt;
  1413. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1414. step 3 : அத்தா இப்போது முடியாது என்கிறார்.&lt;/div&gt;
  1415. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1416. step 4 : மோட்டார் சைக்கிள் கிடைக்காது போல இருக்கிறது, இன்னும் கொஞ்சம் அழுத்தமாக கேட்கவேண்டும் என்று முடிவு செய்கிறீர்கள். மீண்டும் step 1 க்கு போகிறீர்கள்.&lt;/div&gt;
  1417. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1418. &lt;br /&gt;&lt;/div&gt;
  1419. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1420. இங்கே முதலில் condition எதுவும் evaluate செய்யப்படவில்லை பார்த்தீர்களா? step 1 மற்றும் 2 ல் சில காரியங்கள் (statements execute) செய்யப்படுகிறது. அதன் பின்னர் step 3 யில் அதன் result தெரிகிறது.&lt;/div&gt;
  1421. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1422. &lt;br /&gt;&lt;/div&gt;
  1423. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1424. இப்பொழுது step 3 யில் கிடைத்த பதில் (result or condition) evaluate செய்யப்படுகிறது. அதன் அடிப்படையில் திரும்பவும் step 1 க்கு போகவேண்டுமா அல்லது வேண்டாமா என்பது தீர்மானிக்கப்படுகிறது.&lt;/div&gt;
  1425. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1426. &lt;br /&gt;&lt;/div&gt;
  1427. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1428. இதன் முடிவு எப்படி எல்லாம் இருக்கும்?&lt;/div&gt;
  1429. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1430. &lt;br /&gt;&lt;/div&gt;
  1431. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1432. &lt;b&gt;வாய்ப்பு 1:&lt;/b&gt;&lt;/div&gt;
  1433. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1434. step 3: அத்தா வாங்கித் தரலாம் என்கிறார்&lt;/div&gt;
  1435. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1436. step 4: மோட்டார் சைக்கிள் கிடைத்துவிடும் போல தெரிகிறது. மீண்டும் step 1 க்கு போகவேண்டாம் என்று தீர்மானிக்கிறீர்கள்.&lt;/div&gt;
  1437. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1438. &lt;br /&gt;&lt;/div&gt;
  1439. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1440. &lt;b&gt;வாய்ப்பு 2:&lt;/b&gt;&lt;/div&gt;
  1441. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1442. step 3:&amp;nbsp;பொருளாதார வசதியைக் காட்டி அத்தா இப்போது முடியாது என்கிறார்.&lt;/div&gt;
  1443. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1444. step 4 : மோட்டார் சைக்கிள் கிடைக்காது போல இருக்கிறது, நிலைமையை உணராமல் இன்னும் கொஞ்சம் அழுத்தமாக கேட்கவேண்டும் என்று முடிவு செய்கிறீர்கள். மீண்டும் step 1 க்கு போகிறீர்கள்.&lt;/div&gt;
  1445. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1446. &lt;br /&gt;&lt;/div&gt;
  1447. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1448. &lt;b&gt;வாய்ப்பு 3:&lt;/b&gt;&lt;/div&gt;
  1449. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1450. step 3:&amp;nbsp;பொருளாதார வசதியைக் காட்டி அத்தா இப்போது முடியாது என்கிறார்.&lt;/div&gt;
  1451. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1452. step 4 : மோட்டார் சைக்கிள் கிடைக்காது போல இருக்கிறது, நிலைமையை உணர்ந்து உங்கள் கோரிக்கையை கைவிட்டுவிடலாம் மீண்டும் step 1 க்கு போகவேண்டாம் என்று தீர்மானிக்கிறீர்கள்.&lt;/div&gt;
  1453. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1454. &lt;br /&gt;&lt;/div&gt;
  1455. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1456. மேற்கண்ட உதாரணம் இயல்பாக நமது வாழ்வில் நடைபெறும் ஒன்று. என்னங்க! எல்லாத்துக்கும் இந்தமாதிரி உதாரணத்தை சொல்றீங்களே என்று நீங்கள் கேட்கலாம். இந்த மாதிரி உதாரணங்களை நாம் பார்ப்பதன் மூலம் ஒவ்வொரு செயலிலும் ஒரு லாஜிக் இருப்பதை காணலாம். முதலில் நமக்கு புரியவில்லை என்றால் எவ்வாறு ஒரு செயல் நடைபெறுகிறது என்பதை நாம் பட்டியல் போடவேண்டும். அவ்வாறு பட்டியல் போட்டால் அதில் உள்ள லாஜிக்கை புரிந்து கொள்ளலாம்.&lt;/div&gt;
  1457. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1458. &lt;br /&gt;&lt;/div&gt;
  1459. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1460. இந்த மாதிரி அற்ப செயல்களுக்கெல்லாம் நாம் பட்டியல் போட்டு லாஜிக்கை அவசியம் புரிந்துகொள்ளவேண்டுமா?. இதையெல்லாம் புரிந்துகொண்டால்தான் புரோகிராமிங் செய்யமுடியுமா என்று அடுத்த கேள்வி எழும்.&lt;/div&gt;
  1461. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1462. &lt;br /&gt;&lt;/div&gt;
  1463. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1464. ஆமாம் புரிந்துகொள்ள முயலுங்கள். நீங்கள் இதையெல்லாம் புரிந்து கொண்டால் உங்களால் மிகச்சிறப்பாக இயல்பாக புரோகிராமிங் செய்ய முடியும். மனப்பாடம் செய்யவேண்டிய அவசியம் இருக்காது. மனப்பாடம் செய்தது எப்போது வேண்டுமானாலும் மறந்து போகலாம்.&lt;/div&gt;
  1465. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1466. &lt;br /&gt;&lt;/div&gt;
  1467. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1468. நீங்கள் புரோகிராமராக ஒரு வேலையில் சேர்ந்தால், for loop ஐ பயன்படுத்தி while loop பை பயன்படுத்தி if condition போட்டு function ஒன்றை எழுதி ஒரு புரோகிராம் செய்து தாருங்கள் என்று ஒருவரும் உங்களை கேட்கமாட்டார்கள்.&lt;/div&gt;
  1469. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1470. &lt;br /&gt;&lt;/div&gt;
  1471. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1472. அல்லது find the biggest number, find the Fibonacci series, reverse the string என்றெல்லாம் கேட்கமாட்டார்கள். அப்படி கேட்பார்கள் என்றால் நாம் மனப்பாடம் பண்ணிகொள்ளலாம். ஆனால் வேலைக்கு சேர்ந்த பின்பு மண்டை காய்ந்து போகிற மாதிரி bus company ஐ நிர்வகிக்க ஒரு புரோகிராம் வேண்டும். school management program வேண்டும் என்று கேட்பார்கள்.&lt;/div&gt;
  1473. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1474. &lt;br /&gt;&lt;/div&gt;
  1475. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1476. இதையெல்லாம் நான் பள்ளியிலோ, கல்லூரியிலோ, கம்ப்யூட்டர் செண்டரிலோ படிக்கவில்லை என்று சொல்வீர்களா? சொன்னால் உங்கள் வேலை காலி!&lt;/div&gt;
  1477. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1478. &lt;br /&gt;&lt;/div&gt;
  1479. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1480. சரி bus company க்கு ஒரு program வேண்டுமென்றால் நாமே கற்பனையாக ஒரு concept ஐ உருவாக்கி அதை புரோகிராமாக செய்து கொடுக்கமுடியுமா? நீங்கள் செய்தது bus company நடைமுறைக்கு ஒத்துவரவில்லை என்று உங்களையும் உங்கள் program மையும் ஓரங்கட்டிவிடுவார்கள்.&lt;/div&gt;
  1481. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1482. &lt;br /&gt;&lt;/div&gt;
  1483. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1484. பின்னே என்னதான் செய்யவேண்டும்? பஸ் கம்பெனியில் அன்றாடம் என்னென்ன நடக்கிறது என்பதை உள்வாங்கி; கேள்விகள் கேட்டு; புரிந்துகொண்டதை அவர்களுக்கு விளக்கி; அதில் உங்களுக்கும் அவர்களுக்கும் ஏற்படும் சந்தேகங்களுக்கு விடைகண்டு; அதன்பிறகு நீங்கள் எழுதிக்கொடுக்கும் program இருக்கிறதே, அதன் மதிப்பே தனி.&lt;/div&gt;
  1485. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1486. &lt;br /&gt;&lt;/div&gt;
  1487. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1488. பஸ் கம்பெனியில் நடக்கும் ஒரு சின்ன விசயத்தை புரிந்துகொள்ளாமல் போனாலும் உங்கள் புரோகிராமில் ஒரு ஓட்டை விழுந்துவிடும்.&lt;/div&gt;
  1489. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1490. &lt;br /&gt;&lt;/div&gt;
  1491. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1492. இதையெல்லாம் நான் ஒரு புரோகிராமராக வேலைக்கு சேர்ந்த பின்பு பார்த்து கொள்கிறேன் என்பதை விட இப்பொழுதே நீங்களே அன்றாடம் நடக்கும் செயல்களை புரோகிராமாக மாற்ற முயற்சி செய்து கொண்டே இருக்கவேண்டும்.&lt;/div&gt;
  1493. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1494. &lt;br /&gt;&lt;/div&gt;
  1495. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1496. அதற்கான பயிற்சியாகத்தான் உங்களுக்கு இங்கே உதாரணங்கள் கொடுக்கப்படுகின்றன. எனவே மேற்படி மோட்டார் சைக்கிள் வாங்கும் செயலை ஒரு புரோகிராமாக எழுத வேண்டும் . இதுதான் உங்களுக்கான பயிற்சி.&lt;/div&gt;
  1497. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1498. &lt;br /&gt;&lt;/div&gt;
  1499. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1500. பயிற்சியை தொடங்குவோம்.&lt;/div&gt;
  1501. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1502. &lt;br /&gt;&lt;/div&gt;
  1503. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1504. மேற்கண்ட மோட்டார் சைக்கிள் உதாரணத்தில்&amp;nbsp; 4 step புகள் இருக்கின்றன. அவை திரும்பத்திரும்ப செயல்படுத்தப்படுகின்றன. இதற்கு loop பயன்படும் என்பது விளங்குகிறது.&lt;/div&gt;
  1505. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1506. &lt;br /&gt;&lt;/div&gt;
  1507. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1508. அடுத்ததாக இதை for loop பயன்படுத்தி எழுத முடியுமா என்று பார்க்கலாம். முடியாது. ஏனென்றால் இத்தனை தடவைதான் மோட்டார் சைக்கிள் வாங்கித்தருமாறு கேட்கவேண்டும் என்று முதலிலேயே தீர்மானித்துகொண்டா கேட்பீர்கள்? இல்லைதானே. எனவே for loop இதற்கு பயன்படாது.&lt;/div&gt;
  1509. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1510. &lt;br /&gt;&lt;/div&gt;
  1511. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1512. அடுத்ததாக இதை while loop பயன்படுத்தி எழுத முடியுமா என்று பார்க்கலாம். முடியாது. ஏனென்றால் நாம் பார்த்த while loop ப்பில் condition முதலில் evaluate செய்யப்படவேண்டும். மோட்டார் சைக்கிள் கிடைக்கவி்ல்லையானால் என்பது condition. நமது செயலில் இந்த condition ஐ முதலில் போடமுடியாது. உங்களிடம் அப்பா மோட்டார் சைக்கிள் வாங்கித்தரமாட்டேன் என்று முதலில் கூறுவாரா என்ன?&amp;nbsp;&lt;/div&gt;
  1513. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1514. &lt;br /&gt;&lt;/div&gt;
  1515. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1516. &lt;/div&gt;
  1517. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1518. கேட்டபிறகுதான் பதில் தருவார். எனவே இங்கே while loop ப்பும் சரிவராது.&lt;/div&gt;
  1519. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1520. &lt;br /&gt;&lt;/div&gt;
  1521. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1522. &lt;/div&gt;
  1523. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1524. &lt;b&gt;WHILE&amp;nbsp;&lt;/b&gt;மோட்டார் சைக்கிள் கிடைக்கவி்ல்லை மீண்டும் கேட்கவும்&lt;/div&gt;
  1525. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1526. &lt;b&gt;BEGIN&lt;/b&gt;&lt;/div&gt;
  1527. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1528. &amp;nbsp; step 1 : அம்மா! மோட்டார் சைக்கிள் எனக்கு வேண்டும். அத்தாவிடம் சொல்லி வாங்கித்தாங்க என்று கேட்கிறீர்கள்&lt;/div&gt;
  1529. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1530. &amp;nbsp; step 2 : அம்மாவும் அத்தாவிடம் கேட்கிறார்&lt;br /&gt;&amp;nbsp; step 3 : அத்தா இப்போது முடியாது என்கிறார்.&lt;br /&gt;&amp;nbsp;step 4 : மோட்டார் சைக்கிள் கிடைக்காது போல இருக்கிறது, இன்னும் கொஞ்சம் அழுத்தமாக கேட்கவேண்டும் என்று முடிவு செய்கிறீர்கள். மீண்டும் step 1 க்கு போகவேண்டும். அல்லது கிடைத்துவிட்டால் step 1 க்கு போகவேண்டாம்.&lt;/div&gt;
  1531. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1532. &lt;b&gt;END&lt;/b&gt;&lt;/div&gt;
  1533. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1534. &lt;br /&gt;&lt;/div&gt;
  1535. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1536. நமது செயலை while loop ப்பில் இப்படித்தான் போடமுடியும். இது சரிவராது.&lt;/div&gt;
  1537. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1538. வேறு உபாயம் இருக்கிறதா? தேடிப்பார்த்ததில் do..while loop இருக்கிறதே!&lt;/div&gt;
  1539. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1540. &lt;br /&gt;&lt;b&gt;Do..While loop பின் syntax&lt;/b&gt;&lt;/div&gt;
  1541. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1542. &lt;/div&gt;
  1543. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1544. &lt;br /&gt;&lt;b&gt;DO&lt;/b&gt;&lt;/div&gt;
  1545. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1546. &amp;nbsp; execute these statements&lt;/div&gt;
  1547. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1548. &amp;nbsp; your statements here&lt;/div&gt;
  1549. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1550. &lt;b&gt;WHILE&amp;nbsp;&lt;/b&gt;this_boolean_condition_is_true&lt;/div&gt;
  1551. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1552. &lt;br /&gt;&lt;/div&gt;
  1553. &lt;div class=&quot;separator&quot; style=&quot;background-color: #fefdfa; clear: both; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: center;&quot;&gt;
  1554. &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNUPusqBMJzXnBiApNKVGTu5hwK2mkOdkEfyUejBJxOHWLa65fjZmw4OkJWr-zxRNOV7SJBrtfXT86Mj6bIz36esol4MSzMShXpKd9dOy7qHaHEQN4S5FuxOrlN7QvLIA285RHKdMVlae_/s1600/do+while+loop+structure.jpg&quot; imageanchor=&quot;1&quot; style=&quot;color: #7d181e; margin-left: 1em; margin-right: 1em; text-decoration: none;&quot;&gt;&lt;img alt=&quot;do while loop example, mohamed riyadul faridh, j.m.r. faridh, முஹம்மது ரியாதுல் ஃபரீத், முஹம்மது ரியாதுல் பரீத், முகம்மது&quot; border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNUPusqBMJzXnBiApNKVGTu5hwK2mkOdkEfyUejBJxOHWLa65fjZmw4OkJWr-zxRNOV7SJBrtfXT86Mj6bIz36esol4MSzMShXpKd9dOy7qHaHEQN4S5FuxOrlN7QvLIA285RHKdMVlae_/s320/do+while+loop+structure.jpg&quot; style=&quot;-webkit-box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 20px; background-color: white; background-position: initial initial; background-repeat: initial initial; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; border-top-left-radius: 5px; border-top-right-radius: 5px; border: 1px solid rgb(204, 204, 204); box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 20px; padding: 8px; position: relative;&quot; title=&quot;&quot; width=&quot;210&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
  1555. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1556. &lt;br /&gt;&lt;/div&gt;
  1557. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1558. &lt;br /&gt;&lt;/div&gt;
  1559. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1560. &lt;b&gt;DO&lt;/b&gt;&lt;/div&gt;
  1561. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1562. &amp;nbsp; step 1 : அம்மா! மோட்டார் சைக்கிள் எனக்கு வேண்டும். அத்தாவிடம் சொல்லி வாங்கித்தாங்க என்று கேட்கிறீர்கள்&lt;/div&gt;
  1563. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1564. &amp;nbsp; step 2 : அம்மாவும் அத்தாவிடம் கேட்கிறார்&lt;br /&gt;&amp;nbsp; step 3 : அத்தா இப்போது முடியாது என்கிறார்.&lt;br /&gt;&amp;nbsp;step 4 : மோட்டார் சைக்கிள் கிடைக்காது போல இருக்கிறது, இன்னும் கொஞ்சம் அழுத்தமாக கேட்கவேண்டும் என்று முடிவு செய்கிறீர்கள். மீண்டும் step 1 க்கு போகவேண்டும். அல்லது கிடைத்துவிட்டால் step 1 க்கு போகவேண்டாம்.&lt;/div&gt;
  1565. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1566. &lt;b&gt;WHILE&amp;nbsp;&lt;/b&gt;இன்னொரு முறை கேட்கனுமா?&lt;/div&gt;
  1567. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1568. &lt;br /&gt;&lt;/div&gt;
  1569. &lt;div class=&quot;separator&quot; style=&quot;background-color: #fefdfa; clear: both; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: center;&quot;&gt;
  1570. &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-s-B-Erkda8zhTJV9PTv7NrZqxMeVwMeWrUum_55NTeH-2077zZTcxs1qREh8inksRxwYwlS-_nJf_t3VvbZNAwARBsWf0tayd2-1cAe0cTElCmQMDOK3pM9oPXXfRZkxtZykb7_RYzAp/s1600/do+while+loop+example.jpg&quot; imageanchor=&quot;1&quot; style=&quot;color: #7d181e; margin-left: 1em; margin-right: 1em; text-decoration: none;&quot;&gt;&lt;img alt=&quot;do while loop example, mohamed riyadul faridh, j.m.r. faridh, முகம்மது ரியாதுல் ஃபரீத், முகம்மது ரியாதுல் பரீத், முகமது ரியாதுல் பரீத்&quot; border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-s-B-Erkda8zhTJV9PTv7NrZqxMeVwMeWrUum_55NTeH-2077zZTcxs1qREh8inksRxwYwlS-_nJf_t3VvbZNAwARBsWf0tayd2-1cAe0cTElCmQMDOK3pM9oPXXfRZkxtZykb7_RYzAp/s320/do+while+loop+example.jpg&quot; style=&quot;-webkit-box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 20px; background-color: white; background-position: initial initial; background-repeat: initial initial; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; border-top-left-radius: 5px; border-top-right-radius: 5px; border: 1px solid rgb(204, 204, 204); box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 20px; padding: 8px; position: relative;&quot; title=&quot;&quot; width=&quot;278&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
  1571. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1572. &lt;br /&gt;&lt;/div&gt;
  1573. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1574. condition true / false என்பது இறுதியில் evaluate செய்யப்படுவதால் ஒரு தடவையாவது உங்கள் கோரிக்கையை execute செய்ய do while loop உதவுகிறது.&lt;/div&gt;
  1575. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1576. &lt;br /&gt;&lt;/div&gt;
  1577. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1578. &lt;/div&gt;
  1579. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1580. The difference between do..while and while..do loop is that do..while evaluates its expression at the bottom of the loop instead of the top. Therefore, the statements within the do block are always executed at least once.&lt;/div&gt;
  1581. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1582. &lt;br /&gt;&lt;/div&gt;
  1583. &lt;div style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
  1584. புரிந்ததா?&lt;/div&gt;
  1585. &lt;div&gt;
  1586. &lt;br /&gt;&lt;/div&gt;
  1587. &lt;/div&gt;
  1588. &lt;/div&gt;
  1589. &lt;/div&gt;
  1590. </content><link rel='replies' type='application/atom+xml' href='http://tamilprogramminng.blogspot.com/feeds/4235513249994285043/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tamilprogramminng.blogspot.com/2013/08/while-loop_7.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3691376985285892436/posts/default/4235513249994285043'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3691376985285892436/posts/default/4235513249994285043'/><link rel='alternate' type='text/html' href='http://tamilprogramminng.blogspot.com/2013/08/while-loop_7.html' title='While Loop பில் பல ரகம்'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNUPusqBMJzXnBiApNKVGTu5hwK2mkOdkEfyUejBJxOHWLa65fjZmw4OkJWr-zxRNOV7SJBrtfXT86Mj6bIz36esol4MSzMShXpKd9dOy7qHaHEQN4S5FuxOrlN7QvLIA285RHKdMVlae_/s72-c/do+while+loop+structure.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3691376985285892436.post-5594671906436917109</id><published>2013-08-07T05:28:00.000-07:00</published><updated>2013-08-07T05:28:04.830-07:00</updated><title type='text'>While loop என்றால் என்ன?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
  1591. &lt;div class=&quot;post-body entry-content&quot; id=&quot;post-body-3976572279288618476&quot; itemprop=&quot;articleBody&quot; style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; position: relative; width: 606px;&quot;&gt;
  1592. &lt;div dir=&quot;ltr&quot; trbidi=&quot;on&quot;&gt;
  1593. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1594. &lt;div style=&quot;text-align: center;&quot;&gt;
  1595. &lt;span style=&quot;font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  1596. முந்தைய பதிவில்&amp;nbsp;for loop ஐ பற்றி பார்த்தோம் அல்லவா. இந்த பதிவில் while loop&amp;nbsp; ஐ பற்றி பார்ப்போம்.&lt;/div&gt;
  1597. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1598. &lt;br /&gt;&lt;/div&gt;
  1599. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1600. &lt;/div&gt;
  1601. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1602. ஒரு condition true வாக இருக்கும் வரையில் குறிப்பிட்ட statement களை திரும்பத்திரும்ப execute செய்ய while loop பயன்படுகிறது.&lt;br /&gt;&lt;br /&gt;இதையேதான் for loop செய்கிறதே, பின்பு அதற்கும் இதற்கும் என்ன வித்தியாசம் என்று கேட்கிறீர்களா? வித்தியாசம் இருக்கிறது. For loop வேலை செய்வதற்கு ஆரம்ப எண்ணும் முடிவு எண்ணும் அவசியம் தேவை. ஆனால் while loop பிற்கு ஆரம்ப எண், முடிவு எண் அவசியமில்லை, தேவையானால் வேறுவகையில் பயன்படுத்திக் கொள்ளலாம்.&lt;br /&gt;&lt;a href=&quot;&quot; name=&quot;more&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;b&gt;While loop பின் syntax&lt;/b&gt;&lt;/div&gt;
  1603. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1604. &lt;br /&gt;&lt;/div&gt;
  1605. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1606. &lt;b&gt;WHILE&amp;nbsp;&lt;/b&gt;this_boolean_condition_is_true&lt;/div&gt;
  1607. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1608. &lt;b&gt;BEGIN&lt;/b&gt;&lt;/div&gt;
  1609. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1610. &amp;nbsp; execute these statements&lt;/div&gt;
  1611. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1612. &amp;nbsp; your statements here&lt;/div&gt;
  1613. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1614. &lt;b&gt;END&lt;/b&gt;&lt;/div&gt;
  1615. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1616. &lt;br /&gt;&lt;/div&gt;
  1617. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1618. மேலே இருக்கும் while loop எப்படி வேலை செய்கிறதென்பதை இனி பார்ப்போம்.&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  1619. &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVs4sNKpSuU4RUSP0w7NyJCZ1JTY40F8AZOVIXEBFX_B7jV5xVbIAvuYLxm2rKhZYQ_4Iu8t9Uy-m-AzV5NPQ-irjN5IMJlXQu15UTQtUaYfVFtHPGNnWB1NEKPEVxWNnQreN5zIAAs81I/s1600/while_loop.jpg&quot; imageanchor=&quot;1&quot; style=&quot;color: #7d181e; margin-left: 1em; margin-right: 1em; text-decoration: none;&quot;&gt;&lt;img alt=&quot;while loop, mohamed riyadul faridh, new era technology, do while loop&quot; border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVs4sNKpSuU4RUSP0w7NyJCZ1JTY40F8AZOVIXEBFX_B7jV5xVbIAvuYLxm2rKhZYQ_4Iu8t9Uy-m-AzV5NPQ-irjN5IMJlXQu15UTQtUaYfVFtHPGNnWB1NEKPEVxWNnQreN5zIAAs81I/s320/while_loop.jpg&quot; style=&quot;-webkit-box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 20px; background-color: white; background-position: initial initial; background-repeat: initial initial; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; border-top-left-radius: 5px; border-top-right-radius: 5px; border: 1px solid rgb(204, 204, 204); box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 20px; padding: 8px; position: relative;&quot; title=&quot;&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
  1620. &lt;/div&gt;
  1621. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1622. &lt;br /&gt;&lt;/div&gt;
  1623. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1624. step 1 : முதலில் this_boolean_condition_is_true என்பது true ஆக இருக்கிறதா? இல்லை false ஆக இருக்கிறதா? என்பது evaluate செய்யப்படுகிறது.&lt;/div&gt;
  1625. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1626. &lt;br /&gt;&lt;/div&gt;
  1627. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1628. step 2 : ஒருவேளை step 1 னுடைய result false ஆக இருந்தால் begin மற்றும் end டுக்கு நடுவில் இருக்கும் statement கள் execute செய்யப்படாது. end டுக்கு அடுத்துள்ள part க்கு control சென்று விடும்.&lt;/div&gt;
  1629. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1630. &lt;br /&gt;&lt;/div&gt;
  1631. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1632. step 3: ஒருவேளை step 1 னுடைய result true ஆக இருந்தால் begin மற்றும் end டுக்கு நடுவில் இருக்கும் statement கள் execute செய்யப்படும். பின்னர் மீண்டும் step 1 க்கு control செல்லும்.&lt;/div&gt;
  1633. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1634. &lt;/div&gt;
  1635. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1636. &lt;br /&gt;&lt;/div&gt;
  1637. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1638. இப்படியாக this_boolean_condition_is_true என்பது true ஆக இருக்கும் வரை while loop தனக்குள் இருக்கும் statement களை திரும்பத்திரும்ப execute செய்துகொண்டேயிருக்கும்.&lt;/div&gt;
  1639. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1640. &lt;br /&gt;&lt;/div&gt;
  1641. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1642. இப்படியே execute செய்துகொண்டிருந்தால் endless loop ஆக ஆகிவிடுமே? program hang ஆக விடுமே என்ற கேள்வி எழும். உண்மைதான் for loop ஐ போன்று இத்தனை முறை execute செய்துவிட்டு வெளியேறிவிடு என்று இதில் நாம் எழுதப்போவதில்லை. பிறகு எப்படி while loop முடிவுக்கு வருகிறது?&lt;/div&gt;
  1643. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1644. &lt;br /&gt;&lt;/div&gt;
  1645. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1646. while loop ல் statement எழுதுகிறோம் அல்லவா? அங்குதான் while loop பின் முடிவு எல்லை எதுவென்று தீர்மானிக்கப்படுகிறது.&lt;br /&gt;&lt;br /&gt;அதாவது while loop execute ஆகினால் ஏதாவது ஒன்று நடக்கும் அல்லவா? அந்த ஒன்றின் அடிப்படையில் while loop ஐ தொடர்வதா வேண்டாமா என்பதை நம்மால் தீர்மானிக்க முடியும்.&lt;br /&gt;&lt;br /&gt;உதாரணத்திற்கு உங்கள் ஊரில் தண்ணீர் பஞ்சம் வந்துவிட்டதென்று வைத்துக்கொள்வோம். பிரச்சினை தீர&amp;nbsp; கிணறு ஒன்று வெட்ட முடிவாகிவிட்டது. ஊரில் நீங்கள்தான் படித்தபிள்ளை என்று கிணறு வெட்ட உங்களிடம் plan கேட்கிறார்கள். இப்பொழுது நீங்கள் algorithm எழுதவேண்டும்.&lt;/div&gt;
  1647. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1648. &lt;br /&gt;&lt;/div&gt;
  1649. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1650. எப்படி எழுதுவீர்கள்?&lt;/div&gt;
  1651. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1652. &lt;br /&gt;&lt;/div&gt;
  1653. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1654. 1. கிணறு வெட்ட வேண்டிய இடத்தை தேர்வு செய்யவும்.&lt;/div&gt;
  1655. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1656. 2. இத்தனை அடி ஆழம் கிணறு வெட்டவும்.&lt;/div&gt;
  1657. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1658. &lt;br /&gt;&lt;/div&gt;
  1659. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1660. &lt;/div&gt;
  1661. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1662. இந்த பிளானை கொடுத்தவுடன், எத்தனை அடி வெட்டனும் தம்பின்னு கேட்பார்கள். நீங்க 10 அடின்னு சொல்றீங்க. 10 அடி ஆழத்தில் தண்ணீர் கிடைத்துவிடும் என்று எப்படி தம்பி சொல்றீங்க? ஒருவேளை கிடைக்கலைன்னா என்ன செய்யறது?&lt;/div&gt;
  1663. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1664. &lt;br /&gt;&lt;/div&gt;
  1665. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1666. அவர்கள் கேள்வி நியாயமாக இருக்கிறது.&lt;/div&gt;
  1667. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1668. &lt;br /&gt;&lt;/div&gt;
  1669. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1670. 10 அடிதான் கிணறு வெட்ட வேண்டும் என்பதை முன்னரே தீர்மானிக்க இயலாது என்பதுதான் யதார்த்தமான உண்மை (ஆனால் for loop புக்கு முடிவு எல்லை ஆரம்பத்திலேயே தீர்மானிக்கப்பட்டுவிடுகிறது என்பதை கவனத்தில் கொள்ளவும்). பின்னே இந்த மாதிரி வேலைகளுக்கு முடிவு எல்லையை எப்படி வரையறுப்பது?&lt;/div&gt;
  1671. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1672. &lt;br /&gt;லாஜிக் இல்லாமல் எவராலும் கிணறு வெட்ட முடியாது. சரி யோசிப்போம்...&lt;br /&gt;&lt;br /&gt;சரி 20 அடி என்று மாற்றுவீர்களா? இதிலும் அதே பிரச்சனை உள்ளது.&lt;/div&gt;
  1673. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1674. &lt;br /&gt;&lt;/div&gt;
  1675. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1676. பின்னே எப்படித்தான் கிணறு வெட்ட algorithm எழுதுவது?&lt;/div&gt;
  1677. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1678. &lt;br /&gt;&lt;/div&gt;
  1679. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1680. 1. கிணறு வெட்ட வேண்டிய இடத்தை தேர்வு செய்யவும்.&lt;/div&gt;
  1681. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1682. 2. தண்ணீர் கிடைக்கும் வரை கிணறு வெட்டவும்.&lt;br /&gt;&lt;br /&gt;சூப்பர்! இதைத்தான் யதார்த்தமாக யோசிப்பது என்பது.&lt;br /&gt;&lt;br /&gt;மேலோட்டமாக இருக்கும் 2 ஆவது step ல் பல விசயங்கள் அடங்கியுள்ளன. அவற்றை விவரித்து எழுதினால் தான் while loop ஐ பற்றி நன்றாக அறிந்துகொள்ளமுடியும்.&lt;br /&gt;&lt;br /&gt;எப்படி விவரித்து எழுதுவது?&lt;br /&gt;யோசியுங்கள்....&lt;br /&gt;&lt;br /&gt;&lt;div&gt;
  1683. 1. கிணறு வெட்ட வேண்டிய இடத்தை தேர்வு செய்யவும்.&lt;/div&gt;
  1684. 2. தண்ணீர் கிடைக்கும் வரை&lt;br /&gt;&amp;nbsp; 2.1. பள்ளம் தோண்டவும்&lt;br /&gt;&amp;nbsp; 2.2. ஒருவேளை தண்ணீர் கிடைத்து விட்டால் தோண்டுவதை நிறுத்தவும்&lt;br /&gt;&amp;nbsp;2.3 ஒருவேளை 200 அடி ஆழம் வரை தோண்டியும் தண்ணீர் கிடைக்கவில்லையென்றால் தோண்டுவதை நிறுத்தவும்&lt;br /&gt;&lt;br /&gt;எவ்வளவு எதார்த்தமான வழிமுறை பார்த்தீர்களா? இதில் ஏதாவது கற்பனை இருக்கிறதா?&lt;br /&gt;&lt;br /&gt;அவ்வளவுதான் இப்போது லாஜிக் கிடைத்துவிட்டது.&lt;/div&gt;
  1685. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1686. &lt;br /&gt;&lt;/div&gt;
  1687. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1688. இதை while loop பயன்படுத்தி எழுதுவோமா?&lt;/div&gt;
  1689. &lt;div style=&quot;text-align: justify;&quot;&gt;
  1690. &lt;br /&gt;&lt;b&gt;while&lt;/b&gt;&amp;nbsp; தண்ணீர் கிடைக்கும் வரை&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;begin&lt;/b&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; பள்ளம் தோண்டவும்&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ஒருவேளை தண்ணீர் கிடைத்து விட்டால் தோண்டுவதை நிறுத்தவும்&lt;br /&gt;&amp;nbsp; ஒருவேளை 200 அடி தோண்டியும் தண்ணீர் கிடைக்கவில்லையென்றால் தோண்டுவதை நிறுத்தவும்&lt;br /&gt;&lt;b&gt;end&lt;/b&gt;&lt;br /&gt;&lt;div&gt;
  1691. &lt;br /&gt;இங்கு 200 அடி என்பது எங்கள் ஊர் மக்கள் எவ்வளவு அடி அதிகபட்சம் வெட்டுவார்கள் என்பதை தெரிவித்ததால் அப்படி போட்டுள்ளேன். மற்றபடி அவரவர் தேவைக்கேற்ப முடிவு எல்லை மாறுபடும்.&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  1692. &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrWNjM5NT3yaNJKWTNjhqryOYuh7qSqqnFsJnhkoSV31wvkR-PBQSVPzSHgkxLumwTRqeazgJJDVb1LI1V8aE6JsxzjkrKNW7d_2P93L5kpqIEBB0qxXiQn5Dn0vIXm1aBlUEBhs_hGjOq/s1600/while_loop_example.jpg&quot; imageanchor=&quot;1&quot; style=&quot;color: #d52a33; margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;while loop example, how while loop works, j.m.r.faridh&quot; border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrWNjM5NT3yaNJKWTNjhqryOYuh7qSqqnFsJnhkoSV31wvkR-PBQSVPzSHgkxLumwTRqeazgJJDVb1LI1V8aE6JsxzjkrKNW7d_2P93L5kpqIEBB0qxXiQn5Dn0vIXm1aBlUEBhs_hGjOq/s320/while_loop_example.jpg&quot; style=&quot;-webkit-box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 20px; background-color: white; background-position: initial initial; background-repeat: initial initial; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; border-top-left-radius: 5px; border-top-right-radius: 5px; border: 1px solid rgb(204, 204, 204); box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 20px; padding: 8px; position: relative;&quot; title=&quot;&quot; width=&quot;239&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
  1693. &lt;br /&gt;&lt;br /&gt;இப்பொழுது while loop நமது வாழ்வில் எப்படி பயன்படுத்தப்படுகிறது என்பது தெரிகிறதா? இது ஒரு உதாரணம்தான் இன்னும் நிறைய உதாரணங்கள் இருக்கின்றன. விரிவஞ்சி இதை மட்டும் சொல்கிறேன்.&lt;br /&gt;&lt;br /&gt;இந்த மாதிரி விசயத்துக்கு for loop சரிப்பட்டு வராது என்பது இப்பொழுது உங்களுக்கு புரிந்திருக்கும் என்று நம்புகின்றேன்.&lt;br /&gt;&lt;br /&gt;while loop ஐ பற்றி தெரிந்துகொள்ள இன்னும் நிறைய விசயங்கள் உள்ளன. அவற்றை அடுத்த பாகத்தில் பார்ப்போம்.&lt;/div&gt;
  1694. &lt;/div&gt;
  1695. &lt;/div&gt;
  1696. &lt;/div&gt;
  1697. &lt;/div&gt;
  1698. </content><link rel='replies' type='application/atom+xml' href='http://tamilprogramminng.blogspot.com/feeds/5594671906436917109/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tamilprogramminng.blogspot.com/2013/08/while-loop.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3691376985285892436/posts/default/5594671906436917109'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3691376985285892436/posts/default/5594671906436917109'/><link rel='alternate' type='text/html' href='http://tamilprogramminng.blogspot.com/2013/08/while-loop.html' title='While loop என்றால் என்ன?'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVs4sNKpSuU4RUSP0w7NyJCZ1JTY40F8AZOVIXEBFX_B7jV5xVbIAvuYLxm2rKhZYQ_4Iu8t9Uy-m-AzV5NPQ-irjN5IMJlXQu15UTQtUaYfVFtHPGNnWB1NEKPEVxWNnQreN5zIAAs81I/s72-c/while_loop.jpg" height="72" width="72"/><thr:total>0</thr:total></entry></feed>

If you would like to create a banner that links to this page (i.e. this validation result), do the following:

  1. Download the "valid Atom 1.0" banner.

  2. Upload the image to your own server. (This step is important. Please do not link directly to the image on this server.)

  3. Add this HTML to your page (change the image src attribute if necessary):

If you would like to create a text link instead, here is the URL you can use:

http://www.feedvalidator.org/check.cgi?url=http%3A//tamilprogramminng.blogspot.com/feeds/posts/default

Copyright © 2002-9 Sam Ruby, Mark Pilgrim, Joseph Walton, and Phil Ringnalda